pub struct NoopNet;Expand description
Re-export the edge-nal crate
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, <NoopNet as ErrorType>::Error>
async fn read( &mut self, _buf: &mut [u8], ) -> Result<usize, <NoopNet as ErrorType>::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§type Error = Infallible
type Error = Infallible
Error type returned on socket creation failure
Source§async fn connect(
&self,
_remote: SocketAddr,
) -> Result<<NoopNet as TcpConnect>::Socket<'_>, <NoopNet as TcpConnect>::Error>
async fn connect( &self, _remote: SocketAddr, ) -> Result<<NoopNet as TcpConnect>::Socket<'_>, <NoopNet as TcpConnect>::Error>
Connect to a remote socket
Source§impl TcpShutdown for NoopNet
impl TcpShutdown for NoopNet
Source§impl UdpBind for NoopNet
impl UdpBind for NoopNet
Source§type Error = Infallible
type Error = Infallible
Error type returned on socket creation failure
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<<NoopNet as UdpConnect>::Socket<'_>, <NoopNet as UdpConnect>::Error>
async fn connect( &self, _local: SocketAddr, _remote: SocketAddr, ) -> Result<<NoopNet as UdpConnect>::Socket<'_>, <NoopNet as UdpConnect>::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, ) -> (<NoopNet as UdpSplit>::Receive<'_>, <NoopNet as UdpSplit>::Send<'_>, <NoopNet as UdpSplitMulticast>::MulticastV4<'_>, <NoopNet as UdpSplitMulticast>::MulticastV6<'_>)
Source§impl Write for NoopNet
impl Write for NoopNet
Source§async fn write(
&mut self,
_buf: &[u8],
) -> Result<usize, <NoopNet as ErrorType>::Error>
async fn write( &mut self, _buf: &[u8], ) -> Result<usize, <NoopNet as ErrorType>::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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
Source§fn into_fallible<E>(self) -> impl Init<T, E>
fn into_fallible<E>(self) -> impl Init<T, E>
Convert the infallible initializer to a fallible one.
Source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.