pub struct NotImplementedNet;Expand description
A no-op Net returns Error::NotImplemented for every method.
Trait Implementations§
Source§impl INet for NotImplementedNet
impl INet for NotImplementedNet
fn tcp_connect<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 mut Context,
_addr: Address,
) -> Pin<Box<dyn Future<Output = Result<TcpStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn tcp_bind<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 mut Context,
_addr: Address,
) -> Pin<Box<dyn Future<Output = Result<TcpListener>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn udp_bind<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 mut Context,
_addr: Address,
) -> Pin<Box<dyn Future<Output = Result<UdpSocket>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for NotImplementedNet
impl RefUnwindSafe for NotImplementedNet
impl Send for NotImplementedNet
impl Sync for NotImplementedNet
impl Unpin for NotImplementedNet
impl UnsafeUnpin for NotImplementedNet
impl UnwindSafe for NotImplementedNet
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