pub struct EndpointHandle { /* private fields */ }Expand description
A handle to a UDP endpoint, usable from any thread.
Implementations§
Source§impl EndpointHandle
impl EndpointHandle
Sourcepub fn send(&self, msg: Message) -> bool
pub fn send(&self, msg: Message) -> bool
Delivers msg to the endpoint’s Endpoint::on_message. Returns false if the loop
has exited.
Trait Implementations§
Source§impl Clone for EndpointHandle
impl Clone for EndpointHandle
Auto Trait Implementations§
impl !RefUnwindSafe for EndpointHandle
impl !UnwindSafe for EndpointHandle
impl Forget for EndpointHandle
impl Freeze for EndpointHandle
impl Move for EndpointHandle
impl Send for EndpointHandle
impl Sync for EndpointHandle
impl Unpin for EndpointHandle
impl UnsafeUnpin for EndpointHandle
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