pub enum NativeFile {
IoUring(FileWrapper),
Mio(FileWrapper),
Default(FileWrapper),
}Available on crate feature
native only.Variants§
IoUring(FileWrapper)
Available on Linux and crate feature
io-uring and non-miri only.Mio(FileWrapper)
Available on Unix and crate feature
mio and non-miri only.Default(FileWrapper)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NativeFile
impl !UnwindSafe for NativeFile
impl Freeze for NativeFile
impl Send for NativeFile
impl Sync for NativeFile
impl Unpin for NativeFile
impl UnsafeUnpin 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
impl<T> GenericTypeBounds for T
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