[][src]Struct abbegm::tokio_peer::EgmSender

pub struct EgmSender { /* fields omitted */ }

Sending half of an EgmPeer.

Implementations

impl EgmSender[src]

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

Create an EGM sender from the send half of a UDP socket.

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

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

pub async fn send<'_, '_>(
    &'_ mut self,
    msg: &'_ EgmSensor
) -> Result<(), SendError>
[src]

Send a message to 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 send_to<'_, '_, '_>(
    &'_ mut self,
    msg: &'_ EgmSensor,
    target: &'_ SocketAddr
) -> Result<(), SendError>
[src]

Send a message to the specified address.

Trait Implementations

impl Debug for EgmSender[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>,