pub struct NoopNet;Expand description
A type that implements all edge-nal traits but does not support any operation
and panics when any method is called.
Trait Implementations§
Source§impl Dns for NoopNet
impl Dns for NoopNet
Source§impl ErrorType for NoopNet
impl ErrorType for NoopNet
Source§type Error = Infallible
type Error = Infallible
Error type of all the IO operations on this type.
Source§impl MulticastV4 for NoopNet
impl MulticastV4 for NoopNet
Source§impl MulticastV6 for NoopNet
impl MulticastV6 for NoopNet
Source§impl Read for NoopNet
impl Read for NoopNet
Source§async fn read(&mut self, _buf: &mut [u8]) -> Result<usize, Self::Error>
async fn read(&mut self, _buf: &mut [u8]) -> Result<usize, Self::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§async fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
async fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf. Read moreSource§impl TcpAccept for NoopNet
impl TcpAccept for NoopNet
Source§type Error = Infallible
type Error = Infallible
Error type returned on socket creation failure
Source§impl TcpConnect for NoopNet
impl TcpConnect for NoopNet
Source§impl TcpShutdown for NoopNet
impl TcpShutdown for NoopNet
Source§impl UdpConnect for NoopNet
impl UdpConnect for NoopNet
Source§type Error = Infallible
type Error = Infallible
Error type returned on socket creation failure
Source§async fn connect(
&self,
_local: SocketAddr,
_remote: SocketAddr,
) -> Result<Self::Socket<'_>, Self::Error>
async fn connect( &self, _local: SocketAddr, _remote: SocketAddr, ) -> Result<Self::Socket<'_>, Self::Error>
Connect to a remote socket
Source§impl UdpReceive for NoopNet
impl UdpReceive for NoopNet
Source§impl UdpSplitMulticast for NoopNet
impl UdpSplitMulticast for NoopNet
type MulticastV4<'a> = NoopNet
type MulticastV6<'a> = NoopNet
fn split_multicast( &mut self, ) -> (Self::Receive<'_>, Self::Send<'_>, Self::MulticastV4<'_>, Self::MulticastV6<'_>)
Source§impl Write for NoopNet
impl Write for NoopNet
Source§async fn write(&mut self, _buf: &[u8]) -> Result<usize, Self::Error>
async fn write(&mut self, _buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Auto Trait Implementations§
impl Freeze for NoopNet
impl RefUnwindSafe for NoopNet
impl Send for NoopNet
impl Sync for NoopNet
impl Unpin for NoopNet
impl UnsafeUnpin for NoopNet
impl UnwindSafe for NoopNet
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