[−][src]Struct abbegm::tokio_peer::EgmSender
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]
&'_ mut self,
msg: &'_ EgmSensor
) -> Result<(), SendError>
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]
&'_ mut self,
msg: &'_ EgmSensor,
target: &'_ SocketAddr
) -> Result<(), SendError>
Send a message to the specified address.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for EgmSender
impl Send for EgmSender
impl Sync for EgmSender
impl Unpin for EgmSender
impl !UnwindSafe for EgmSender
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>,