Trait ServerMsg

Source
pub trait ServerMsg: ReadXml {
    const TAG_NS: Namespace<'static>;
    const TAG_NAME: &'static str;

    // Provided methods
    fn from_xml<S>(input: S) -> Result<Self, ReadError>
       where S: AsRef<str> + Debug { ... }
    fn recv<'life0, 'async_trait, T>(
        receiver: &'life0 mut T,
    ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
       where T: 'async_trait + RecvHandle,
             Self: Send + 'async_trait,
             'life0: 'async_trait { ... }
}
Available on crate features ssh or tls only.

Required Associated Constants§

Source

const TAG_NS: Namespace<'static>

Source

const TAG_NAME: &'static str

Provided Methods§

Source

fn from_xml<S>(input: S) -> Result<Self, ReadError>
where S: AsRef<str> + Debug,

Source

fn recv<'life0, 'async_trait, T>( receiver: &'life0 mut T, ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
where T: 'async_trait + RecvHandle, Self: Send + 'async_trait, 'life0: '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§