pub struct DriverChannelSink { /* private fields */ }Expand description
Concrete ChannelSink backed by a ConnectionSender.
Created by the driver when setting up outbound channels (Tx handles).
Sends ChannelItem and ChannelClose messages through the connection.
Wrapped with CreditSink to enforce credit-based flow control.
Trait Implementations§
Source§impl ChannelSink for DriverChannelSink
impl ChannelSink for DriverChannelSink
fn send_payload<'payload>( &self, payload: Payload<'payload>, ) -> Pin<Box<dyn MaybeSendFuture<Output = Result<(), TxError>> + 'payload>>
fn close_channel( &self, _metadata: Metadata<'_>, ) -> Pin<Box<dyn MaybeSendFuture<Output = Result<(), TxError>> + 'static>>
Source§fn close_channel_on_drop(&self)
fn close_channel_on_drop(&self)
Synchronous drop-time close signal. Read more
Auto Trait Implementations§
impl Freeze for DriverChannelSink
impl RefUnwindSafe for DriverChannelSink
impl Send for DriverChannelSink
impl Sync for DriverChannelSink
impl Unpin for DriverChannelSink
impl UnsafeUnpin for DriverChannelSink
impl UnwindSafe for DriverChannelSink
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