Enum mfio_rt::native::NativeFile
source · pub enum NativeFile {
Iocp(FileWrapper),
Default(FileWrapper),
}
Available on crate feature
native
only.Variants§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NativeFile
impl Send for NativeFile
impl Sync for NativeFile
impl Unpin for NativeFile
impl !UnwindSafe for NativeFile
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<T, 'a>(
&'a self,
pos: Pos,
data: &'a mut MaybeUninit<T>
) -> IoFullFut<'a, Self, Write, Pos, &'a mut [MaybeUninit<u8>]> ⓘwhere
T: Pod,
fn read_into<T, 'a>(
&'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