Struct futures_channel::mpsc::UnboundedSenderInner
source · struct UnboundedSenderInner<T> {
inner: Arc<UnboundedInner<T>>,
}
Fields§
§inner: Arc<UnboundedInner<T>>
Implementations§
source§impl<T> UnboundedSenderInner<T>
impl<T> UnboundedSenderInner<T>
fn poll_ready_nb(&self) -> Poll<Result<(), SendError>>
fn queue_push_and_signal(&self, msg: T)
fn inc_num_messages(&self) -> Option<usize>
sourcefn same_receiver(&self, other: &Self) -> bool
fn same_receiver(&self, other: &Self) -> bool
Returns whether the senders send to the same receiver.
sourcefn is_connected_to(&self, inner: &Arc<UnboundedInner<T>>) -> bool
fn is_connected_to(&self, inner: &Arc<UnboundedInner<T>>) -> bool
Returns whether the sender send to this receiver.
sourcefn ptr(&self) -> *const UnboundedInner<T>
fn ptr(&self) -> *const UnboundedInner<T>
Returns pointer to the Arc containing sender
The returned pointer is not referenced and should be only used for hashing!
sourcefn close_channel(&self)
fn close_channel(&self)
Closes this channel from the sender side, preventing any new messages.
Trait Implementations§
source§impl<T> Clone for UnboundedSenderInner<T>
impl<T> Clone for UnboundedSenderInner<T>
source§impl<T> Drop for UnboundedSenderInner<T>
impl<T> Drop for UnboundedSenderInner<T>
impl<T> Unpin for UnboundedSenderInner<T>
Auto Trait Implementations§
impl<T> Freeze for UnboundedSenderInner<T>
impl<T> !RefUnwindSafe for UnboundedSenderInner<T>
impl<T> Send for UnboundedSenderInner<T>where
T: Send,
impl<T> Sync for UnboundedSenderInner<T>where
T: Send,
impl<T> !UnwindSafe for UnboundedSenderInner<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