Struct iotscape::NullSocket
source · pub struct NullSocket {}Expand description
SocketTrait impl which does nothing
Trait Implementations§
source§impl SocketTrait for NullSocket
impl SocketTrait for NullSocket
fn bind(_addrs: &[SocketAddr]) -> Result<Self, String>
fn send_to(&self, buf: &[u8], _addr: SocketAddr) -> Result<usize, String>
fn recv(&mut self, _buf: &mut [u8]) -> Result<usize, String>
fn set_read_timeout(&self, _timeout: Option<Duration>) -> Result<(), String>
fn set_write_timeout(&self, _timeout: Option<Duration>) -> Result<(), String>
Auto Trait Implementations§
impl RefUnwindSafe for NullSocket
impl Send for NullSocket
impl Sync for NullSocket
impl Unpin for NullSocket
impl UnwindSafe for NullSocket
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