pub(crate) struct SenderHandle<N: Network> {
network: N,
}
Expand description
Handle for sending and broadcasting messages to the Network
. It can be used to send or broadcast
instances of any type that implement the Into<Message>
trait.
Fields§
§network: N
Implementations§
Trait Implementations§
source§impl<N: Clone + Network> Clone for SenderHandle<N>
impl<N: Clone + Network> Clone for SenderHandle<N>
source§fn clone(&self) -> SenderHandle<N>
fn clone(&self) -> SenderHandle<N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<N> Freeze for SenderHandle<N>where
N: Freeze,
impl<N> RefUnwindSafe for SenderHandle<N>where
N: RefUnwindSafe,
impl<N> Send for SenderHandle<N>
impl<N> Sync for SenderHandle<N>where
N: Sync,
impl<N> Unpin for SenderHandle<N>where
N: Unpin,
impl<N> UnwindSafe for SenderHandle<N>where
N: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)