pub trait Builder<'a, O: Operation>: Debug + Sized {
// Required methods
fn new(ctx: &'a Context) -> Self;
fn finish(self) -> Result<O, Error>;
// Provided method
fn build<F>(self, build_fn: F) -> Result<O, Error>
where F: FnOnce(Self) -> Result<O, Error> { ... }
}
Available on crate features
ssh
or tls
only.Required Methods§
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.