pub struct MpscClient<ID, T> {
pub sender: Sender<ClientMessage<ID>>,
pub receiver: Receiver<ServerMessage<ID, T>>,
}Fields§
§sender: Sender<ClientMessage<ID>>§receiver: Receiver<ServerMessage<ID, T>>Implementations§
Source§impl<ID, T> MpscClient<ID, T>
impl<ID, T> MpscClient<ID, T>
pub fn send(&self, message: ClientMessage<ID>)
Trait Implementations§
Source§impl<ID: Clone, T: Clone> Clone for MpscClient<ID, T>
impl<ID: Clone, T: Clone> Clone for MpscClient<ID, T>
Source§fn clone(&self) -> MpscClient<ID, T>
fn clone(&self) -> MpscClient<ID, T>
Returns a duplicate 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<ID, T> Freeze for MpscClient<ID, T>
impl<ID, T> RefUnwindSafe for MpscClient<ID, T>
impl<ID, T> Send for MpscClient<ID, T>
impl<ID, T> Sync for MpscClient<ID, T>
impl<ID, T> Unpin for MpscClient<ID, T>
impl<ID, T> UnwindSafe for MpscClient<ID, T>
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