[][src]Struct abbegm::tokio_peer::EgmReceiver

pub struct EgmReceiver { /* fields omitted */ }

Receiving half of an EgmPeer.

Implementations

impl EgmReceiver[src]

pub fn new(inner: RecvHalf) -> Self[src]

Create an EGM receiver from the receive half of a UDP socket.

pub fn into_inner(self) -> RecvHalf[src]

Consume self and return the original half of the UDP socket.

pub async fn recv<'_>(&'_ mut self) -> Result<EgmRobot, ReceiveError>[src]

Receive a message from the remote address to which the inner socket is connected.

To use this function, you must pass an already connected socket to EgmPeer::new. If the peer was created with an unconnected socket, this function will panic.

pub async fn recv_from<'_>(
    &'_ mut self
) -> Result<(EgmRobot, SocketAddr), ReceiveError>
[src]

Receive a message from any remote address.

Trait Implementations

impl Debug for EgmReceiver[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,