Struct kernel::user_ptr::UserSlicePtrReader[][src]

pub struct UserSlicePtrReader(_, _);
Expand description

A reader for UserSlicePtr.

Used to incrementally read from the user slice.

Trait Implementations

Returns the number of bytes left to be read from this.

Note that even reading less than this number of bytes may fail.

Reads raw data from the user slice into a raw kernel buffer.

Safety

The output buffer must be valid.

Returns true if no data is available in the io buffer.

Reads all data remaining in the io buffer. Read more

Reads a byte slice from the io buffer. Read more

Reads the contents of a plain old data (POD) type from the io buffer.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.