pub struct ChannelWireTx { /* private fields */ }
Expand description
A WireTx
impl using tokio mpsc channels
Implementations§
Source§impl ChannelWireTx
impl ChannelWireTx
Sourcepub fn set_stopper(&mut self, stopper: Stopper)
pub fn set_stopper(&mut self, stopper: Stopper)
Add a stopper to listen for “close” methods
Trait Implementations§
Source§impl Clone for ChannelWireTx
impl Clone for ChannelWireTx
Source§fn clone(&self) -> ChannelWireTx
fn clone(&self) -> ChannelWireTx
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl WireTx for ChannelWireTx
impl WireTx for ChannelWireTx
Source§type Error = ChannelWireTxError
type Error = ChannelWireTxError
The error type of this connection. Read more
Source§async fn send<T: Serialize + ?Sized>(
&self,
hdr: VarHeader,
msg: &T,
) -> Result<(), Self::Error>
async fn send<T: Serialize + ?Sized>( &self, hdr: VarHeader, msg: &T, ) -> Result<(), Self::Error>
Send a single frame to the client, returning when send is complete.
Source§async fn send_raw(&self, buf: &[u8]) -> Result<(), Self::Error>
async fn send_raw(&self, buf: &[u8]) -> Result<(), Self::Error>
Send a single frame to the client, without handling serialization
Source§async fn send_log_str(
&self,
kkind: VarKeyKind,
s: &str,
) -> Result<(), Self::Error>
async fn send_log_str( &self, kkind: VarKeyKind, s: &str, ) -> Result<(), Self::Error>
Send a logging message on the
LoggingTopic
Read moreSource§async fn send_log_fmt<'a>(
&self,
kkind: VarKeyKind,
a: Arguments<'a>,
) -> Result<(), Self::Error>
async fn send_log_fmt<'a>( &self, kkind: VarKeyKind, a: Arguments<'a>, ) -> Result<(), Self::Error>
Send a logging message on the
LoggingTopic
Read moreAuto Trait Implementations§
impl Freeze for ChannelWireTx
impl !RefUnwindSafe for ChannelWireTx
impl Send for ChannelWireTx
impl Sync for ChannelWireTx
impl Unpin for ChannelWireTx
impl !UnwindSafe for ChannelWireTx
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