Enum mfio_rt::native::NativeTcpStream
source · pub enum NativeTcpStream {
IoUring(TcpStream),
Mio(TcpStream),
Default(TcpStream),
}
Available on crate feature
native
only.Variants§
Trait Implementations§
source§impl Drop for NativeTcpStream
impl Drop for NativeTcpStream
source§impl TcpStreamHandle for NativeTcpStream
impl TcpStreamHandle for NativeTcpStream
source§fn local_addr(&self) -> MfioResult<SocketAddr>
fn local_addr(&self) -> MfioResult<SocketAddr>
Available on crate feature
std
only.source§fn peer_addr(&self) -> MfioResult<SocketAddr>
fn peer_addr(&self) -> MfioResult<SocketAddr>
Available on crate feature
std
only.Auto Trait Implementations§
impl !RefUnwindSafe for NativeTcpStream
impl Send for NativeTcpStream
impl Sync for NativeTcpStream
impl Unpin for NativeTcpStream
impl !UnwindSafe for NativeTcpStream
Blanket Implementations§
source§impl<T> AsyncWrite<NoPos> for T
impl<T> AsyncWrite<NoPos> for T
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