pub trait CapabilityExt {
// Required methods
fn to_cap(&self) -> Capability;
fn from_cap(c: CapsCapability) -> Self;
}Required Methods§
Sourcefn to_cap(&self) -> Capability
fn to_cap(&self) -> Capability
Convert self to caps::Capability
Sourcefn from_cap(c: CapsCapability) -> Self
fn from_cap(c: CapsCapability) -> Self
Convert caps::Capability to self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl CapabilityExt for Capability
impl CapabilityExt for Capability
Source§fn to_cap(&self) -> Capability
fn to_cap(&self) -> Capability
Convert oci::runtime::Capability to caps::Capability
Source§fn from_cap(c: CapsCapability) -> SpecCapability
fn from_cap(c: CapsCapability) -> SpecCapability
Convert caps::Capability to oci::runtime::Capability