pub struct SimNode<'a> { /* private fields */ }Implementations§
Trait Implementations§
impl<'a> Copy for SimNode<'a>
Source§impl Udp for SimNode<'_>
impl Udp for SimNode<'_>
Source§fn recv_from(
&self,
buf: &mut [u8],
) -> impl Future<Output = Result<(usize, PeerAddr)>>
fn recv_from( &self, buf: &mut [u8], ) -> impl Future<Output = Result<(usize, PeerAddr)>>
Receives one datagram into
buf, returning how many octets arrived and from where. Read moreSource§fn send_to(
&self,
buf: &[u8],
addr: PeerAddr,
) -> impl Future<Output = Result<()>>
fn send_to( &self, buf: &[u8], addr: PeerAddr, ) -> impl Future<Output = Result<()>>
Sends one datagram.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SimNode<'a>
impl<'a> !Send for SimNode<'a>
impl<'a> !Sync for SimNode<'a>
impl<'a> !UnwindSafe for SimNode<'a>
impl<'a> Forget for SimNode<'a>
impl<'a> Freeze for SimNode<'a>
impl<'a> Move for SimNode<'a>
impl<'a> Unpin for SimNode<'a>
impl<'a> UnsafeUnpin for SimNode<'a>
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