pub struct BoundedSender<T> { /* private fields */ }Implementations§
Source§impl<T> BoundedSender<T>
impl<T> BoundedSender<T>
Sourcepub fn try_send_owned(&self, value: T) -> Result<(), (Backpressure, T)>
pub fn try_send_owned(&self, value: T) -> Result<(), (Backpressure, T)>
Try to send without dropping on Full by returning the value back to the caller.
Trait Implementations§
Source§impl<T: Send> ChannelSend<T> for BoundedSender<T>
impl<T: Send> ChannelSend<T> for BoundedSender<T>
fn send(&self, value: T) -> Backpressure
Source§impl<T> Clone for BoundedSender<T>
impl<T> Clone for BoundedSender<T>
Source§impl<T> Debug for BoundedSender<T>
impl<T> Debug for BoundedSender<T>
Auto Trait Implementations§
impl<T> Freeze for BoundedSender<T>
impl<T> RefUnwindSafe for BoundedSender<T>
impl<T> Send for BoundedSender<T>where
T: Send,
impl<T> Sync for BoundedSender<T>where
T: Send,
impl<T> Unpin for BoundedSender<T>
impl<T> UnwindSafe for BoundedSender<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