[−][src]Struct abbegm::tokio_peer::EgmReceiver
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]
&'_ mut self
) -> Result<(EgmRobot, SocketAddr), ReceiveError>
Receive a message from any remote address.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for EgmReceiver
impl Send for EgmReceiver
impl Sync for EgmReceiver
impl Unpin for EgmReceiver
impl !UnwindSafe for EgmReceiver
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,