pub struct AllSender<T> { /* private fields */ }Expand description
可克隆(Clone)的全部交值句柄(sender handle)。
每份有效句柄占一个结果位置,消耗自身交值或无值释放均只结束本份。
接收关闭后的克隆只保留关闭错误,不新增位置。
T: Send 时可跨线程使用,不额外要求 T: Sync。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for AllSender<T>
impl<T> !UnwindSafe for AllSender<T>
impl<T> Forget for AllSender<T>
impl<T> Freeze for AllSender<T>where
AllSenderState<T>: Freeze,
impl<T> Move for AllSender<T>
impl<T> Send for AllSender<T>where
AllSenderState<T>: Send,
impl<T> Sync for AllSender<T>where
AllSenderState<T>: Sync,
impl<T> Unpin for AllSender<T>where
AllSenderState<T>: Unpin,
impl<T> UnsafeUnpin for AllSender<T>where
AllSenderState<T>: UnsafeUnpin,
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