pub struct MmapData { /* private fields */ }Expand description
Data from a memory mapped file.
Implementations§
Trait Implementations§
Source§impl FrameReader for MmapData
impl FrameReader for MmapData
type OwnedType = Bytes
Source§fn exposed_data(&self) -> &[u8] ⓘ
fn exposed_data(&self) -> &[u8] ⓘ
Data exposed by this frame to inner frame.
Ex: sized frame will expose the sized data without encoded size numbers
Source§fn whole_data(&self) -> &[u8] ⓘ
fn whole_data(&self) -> &[u8] ⓘ
Data of the whole frame, not just the exposed data.
Source§fn to_owned_frame(&self) -> Self::OwnedType
fn to_owned_frame(&self) -> Self::OwnedType
Converts the frame to a owned version (without lifetime)
Source§fn whole_data_size(&self) -> usize
fn whole_data_size(&self) -> usize
Size of the whole data of the frame.
Auto Trait Implementations§
impl Freeze for MmapData
impl RefUnwindSafe for MmapData
impl Send for MmapData
impl Sync for MmapData
impl Unpin for MmapData
impl UnwindSafe for MmapData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more