pub trait Create<P>: Empty {
type Cleanup: Cleanup<P>;
// Required methods
fn try_new(ring: Self::Ring) -> Result<Self, Result<P, Self::Cleanup>>;
fn socket(self) -> Result<Self, Result<P, Self::Cleanup>>;
fn finish(self) -> Result<Self::Ring, Result<P, Self::Cleanup>>;
}Expand description
Capability setup retains the complete native owner on every failed stage.
Required Associated Types§
Required Methods§
fn try_new(ring: Self::Ring) -> Result<Self, Result<P, Self::Cleanup>>
fn socket(self) -> Result<Self, Result<P, Self::Cleanup>>
fn finish(self) -> Result<Self::Ring, Result<P, Self::Cleanup>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".