Struct aws_smithy_async::future::rendezvous::Sender
source · pub struct Sender<T> { /* private fields */ }
Expand description
Sender-half of a channel
Implementations§
source§impl<T> Sender<T>
impl<T> Sender<T>
sourcepub async fn send(&self, item: T) -> Result<(), SendError<T>>
pub async fn send(&self, item: T) -> Result<(), SendError<T>>
Send item
into the channel waiting until there is matching demand
Unlike something like tokio::sync::mpsc::Channel
where sending a value will be buffered until
demand exists, a rendezvous sender will wait until matching demand exists before this function will return.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Sender<T>
impl<T> !RefUnwindSafe for Sender<T>
impl<T> Send for Sender<T>where
T: Send,
impl<T> Sync for Sender<T>where
T: Send,
impl<T> Unpin for Sender<T>
impl<T> !UnwindSafe for Sender<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