Struct saltyrtc_client::UnboundedChannel
source · [−]pub struct UnboundedChannel<T> {
pub tx: UnboundedSender<T>,
pub rx: UnboundedReceiver<T>,
}
Expand description
An unbounded channel sender/receiver pair.
Fields
tx: UnboundedSender<T>
The channel sender.
rx: UnboundedReceiver<T>
The channel receiver.
Implementations
sourceimpl<T> UnboundedChannel<T>
impl<T> UnboundedChannel<T>
sourcepub fn split(self) -> (UnboundedSender<T>, UnboundedReceiver<T>)
pub fn split(self) -> (UnboundedSender<T>, UnboundedReceiver<T>)
Split this channel into sending and receiving half.
sourcepub fn clone_tx(&self) -> UnboundedSender<T>
pub fn clone_tx(&self) -> UnboundedSender<T>
Get a clone of the sending half of the channel.
Auto Trait Implementations
impl<T> !RefUnwindSafe for UnboundedChannel<T>
impl<T> Send for UnboundedChannel<T>where
T: Send,
impl<T> Sync for UnboundedChannel<T>where
T: Send,
impl<T> Unpin for UnboundedChannel<T>
impl<T> !UnwindSafe for UnboundedChannel<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more