pub struct FileWrapper(/* private fields */);
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileWrapper
impl RefUnwindSafe for FileWrapper
impl Send for FileWrapper
impl Sync for FileWrapper
impl Unpin for FileWrapper
impl UnwindSafe for FileWrapper
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> 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<Pos, T> IoRead<Pos> for T
impl<Pos, T> IoRead<Pos> for T
Source§fn read_raw<'a, T>(
&'a self,
pos: Pos,
packet: T,
) -> IoFut<'a, Self, Write, Pos, T>where
T: PacketStore<'a, Write>,
fn read_raw<'a, T>(
&'a self,
pos: Pos,
packet: T,
) -> IoFut<'a, Self, Write, Pos, T>where
T: PacketStore<'a, Write>,
Forwards a read request to the I/O object. Read more
Source§fn read_all<'a, T>(
&'a self,
pos: Pos,
packet: T,
) -> IoFullFut<'a, Self, Write, Pos, T>where
T: IntoPacket<'a, Write>,
fn read_all<'a, T>(
&'a self,
pos: Pos,
packet: T,
) -> IoFullFut<'a, Self, Write, Pos, T>where
T: IntoPacket<'a, Write>,
Read all data into the given object.
Source§fn read_into<'a, T>(
&'a self,
pos: Pos,
data: &'a mut MaybeUninit<T>,
) -> IoFullFut<'a, Self, Write, Pos, &'a mut [MaybeUninit<u8>]>where
T: Pod,
fn read_into<'a, T>(
&'a self,
pos: Pos,
data: &'a mut MaybeUninit<T>,
) -> IoFullFut<'a, Self, Write, Pos, &'a mut [MaybeUninit<u8>]>where
T: Pod,
Reads data into a
Pod
struct.Source§fn read<T>(&self, pos: Pos) -> IoReadFut<'_, Self, Pos, T>where
T: Pod,
fn read<T>(&self, pos: Pos) -> IoReadFut<'_, Self, Pos, T>where
T: Pod,
Reads data into a new
Pod
struct.Source§fn read_to_end<'a>(
&'a self,
pos: Pos,
buf: &'a mut Vec<u8>,
) -> ReadToEndFut<'a, Self, Pos>where
Pos: CopyPos,
fn read_to_end<'a>(
&'a self,
pos: Pos,
buf: &'a mut Vec<u8>,
) -> ReadToEndFut<'a, Self, Pos>where
Pos: CopyPos,
Reads data into given buffer until a gap is reached.
Source§impl<Pos, T> IoWrite<Pos> for T
impl<Pos, T> IoWrite<Pos> for T
Source§fn write_raw<'a, T>(
&'a self,
pos: Pos,
packet: T,
) -> IoFut<'a, Self, Read, Pos, T>where
T: PacketStore<'a, Read>,
fn write_raw<'a, T>(
&'a self,
pos: Pos,
packet: T,
) -> IoFut<'a, Self, Read, Pos, T>where
T: PacketStore<'a, Read>,
Forwards a write request to the I/O object. Read more