pub struct CompatibilityProfile { /* private fields */ }Expand description
A caller-selected provider and optional backend runtime.
podman compose is intentionally not represented as a provider: Podman documents that command
as a wrapper around an external provider. Callers must identify the provider it actually runs.
Implementations§
Source§impl CompatibilityProfile
impl CompatibilityProfile
Sourcepub const fn specification() -> Self
pub const fn specification() -> Self
Creates the specification-oriented profile.
Sourcepub const fn docker_compose(version: ImplementationVersion) -> Self
pub const fn docker_compose(version: ImplementationVersion) -> Self
Creates a Docker Compose profile for an exact provider version.
Sourcepub const fn podman_compose(version: ImplementationVersion) -> Self
pub const fn podman_compose(version: ImplementationVersion) -> Self
Creates a containers/podman-compose profile for an exact provider version.
Sourcepub const fn tolerant() -> Self
pub const fn tolerant() -> Self
Creates a tolerant preservation profile that makes no implementation-support claim.
Sourcepub const fn with_runtime(self, runtime: ContainerRuntime) -> Self
pub const fn with_runtime(self, runtime: ContainerRuntime) -> Self
Attaches the exact backend runtime selected by the caller.
Sourcepub const fn provider(self) -> ComposeProvider
pub const fn provider(self) -> ComposeProvider
Returns the selected Compose provider.
Sourcepub const fn runtime(self) -> Option<ContainerRuntime>
pub const fn runtime(self) -> Option<ContainerRuntime>
Returns the selected backend runtime, if supplied.
Sourcepub fn classify(self, feature: CompatibilityFeature) -> CompatibilityRule
pub fn classify(self, feature: CompatibilityFeature) -> CompatibilityRule
Classifies one feature using only versioned built-in evidence.
Trait Implementations§
Source§impl Clone for CompatibilityProfile
impl Clone for CompatibilityProfile
Source§fn clone(&self) -> CompatibilityProfile
fn clone(&self) -> CompatibilityProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompatibilityProfile
Source§impl Debug for CompatibilityProfile
impl Debug for CompatibilityProfile
impl Eq for CompatibilityProfile
Source§impl Hash for CompatibilityProfile
impl Hash for CompatibilityProfile
Source§impl PartialEq for CompatibilityProfile
impl PartialEq for CompatibilityProfile
impl StructuralPartialEq for CompatibilityProfile
Auto Trait Implementations§
impl Freeze for CompatibilityProfile
impl RefUnwindSafe for CompatibilityProfile
impl Send for CompatibilityProfile
impl Sync for CompatibilityProfile
impl Unpin for CompatibilityProfile
impl UnsafeUnpin for CompatibilityProfile
impl UnwindSafe for CompatibilityProfile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more