pub struct UnboundedSenderRef<'a, T> { /* private fields */ }
Expand description
A borrowing handle for sending elements through an unbounded split
UnboundedChannel
.
Implementations§
Source§impl<T> UnboundedSenderRef<'_, T>
impl<T> UnboundedSenderRef<'_, T>
Sourcepub fn same_channel(&self, other: &Self) -> bool
pub fn same_channel(&self, other: &Self) -> bool
Returns true
if self
and other
are handles for the same channel
instance.
Trait Implementations§
Source§impl<T> Clone for UnboundedSenderRef<'_, T>
impl<T> Clone for UnboundedSenderRef<'_, T>
Source§impl<T> Debug for UnboundedSenderRef<'_, T>
impl<T> Debug for UnboundedSenderRef<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for UnboundedSenderRef<'a, T>
impl<'a, T> !RefUnwindSafe for UnboundedSenderRef<'a, T>
impl<'a, T> !Send for UnboundedSenderRef<'a, T>
impl<'a, T> !Sync for UnboundedSenderRef<'a, T>
impl<'a, T> Unpin for UnboundedSenderRef<'a, T>
impl<'a, T> !UnwindSafe for UnboundedSenderRef<'a, 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