Struct glommio::io::ReadResult [−][src]
pub struct ReadResult(_);
Expand description
ReadResult encapsulates a buffer, returned by read operations like
get_buffer_aligned
and
read_at
Implementations
Creates a slice of this ReadResult with the given offset and length.
Returns None
if either offset or offset + len would not fit in the
original buffer.
Creates a slice of this ReadResult with the given offset and length.
Similiar to ReadResult::slice
, but does not check if the offset and
length are correct.
Safety
Any user of this function must guarantee that the offset and length are correct (not out of bounds).
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ReadResult
impl !Send for ReadResult
impl !Sync for ReadResult
impl Unpin for ReadResult
impl !UnwindSafe for ReadResult
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more