Trait ClientMsg

Source
pub trait ClientMsg: WriteXml + Debug {
    // Provided methods
    fn to_xml(&self) -> Result<String, WriteError> { ... }
    fn send<'life0, 'life1, 'async_trait, T>(
        &'life0 self,
        sender: &'life1 mut T,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where T: 'async_trait + SendHandle,
             Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}
Available on crate features ssh or tls only.

Provided Methods§

Source

fn to_xml(&self) -> Result<String, WriteError>

Source

fn send<'life0, 'life1, 'async_trait, T>( &'life0 self, sender: &'life1 mut T, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where T: 'async_trait + SendHandle, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§