pub struct Sender { /* private fields */ }
Expand description
The sending half of a channel to send an upgraded connection.
Unlike async_channel::Sender
the send
method on this type can only be
called once, and cannot be cloned. That’s because only a single instance of
Connection
should be created.
Implementations
impl Sender
impl Sender
pub async fn send(self, conn: Connection)
pub async fn send(self, conn: Connection)
Send a Connection
.
The channel will be consumed after having sent the connection.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sender
impl Send for Sender
impl Sync for Sender
impl Unpin for Sender
impl UnwindSafe for Sender
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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