pub enum NativeTcpStream {
IoUring(TcpStream),
Mio(TcpStream),
Default(TcpStream),
}Available on crate feature
native only.Variants§
IoUring(TcpStream)
Available on non-
miri and Linux and crate feature io-uring only.Mio(TcpStream)
Available on non-
miri and Unix and crate feature mio only.Default(TcpStream)
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 Freeze for NativeTcpStream
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<'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