pub trait Operation:
Debug
+ WriteXml
+ Send
+ Sync
+ Sized {
type Builder<'a>: Builder<'a, Self>;
type Reply: Debug + ReadXml + IntoResult;
const NAME: &'static str;
const REQUIRED_CAPABILITIES: Requirements;
// Provided method
fn new<'a, F>(ctx: &'a Context, build_fn: F) -> Result<Self, Error>
where F: FnOnce(Self::Builder<'a>) -> Result<Self, Error> { ... }
}Available on crate features
ssh or tls only.Required Associated Constants§
const NAME: &'static str
const REQUIRED_CAPABILITIES: Requirements
Required Associated Types§
Provided Methods§
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.