pub enum ContainerSupport {
Available,
RequiresLinux,
}Expand description
Whether this host can run container actions and service containers.
01-current-architecture.md, edge case 2: a host does not gain them merely
because Docker is installed; GitHub’s reference requires Linux.
Variants§
Available
Container actions and service containers are available.
RequiresLinux
They are unavailable on this operating system, whatever is installed.
Implementations§
Source§impl ContainerSupport
impl ContainerSupport
Sourcepub const fn of(os: Os) -> Self
pub const fn of(os: Os) -> Self
Derived from Os::supports_container_actions. This type adds the
operator-facing explanation; it does not re-decide the question.
Sourcepub const fn is_available(self) -> bool
pub const fn is_available(self) -> bool
Whether container workflow features work on this host.
Trait Implementations§
Source§impl Clone for ContainerSupport
impl Clone for ContainerSupport
Source§fn clone(&self) -> ContainerSupport
fn clone(&self) -> ContainerSupport
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 ContainerSupport
Source§impl Debug for ContainerSupport
impl Debug for ContainerSupport
Source§impl<'de> Deserialize<'de> for ContainerSupport
impl<'de> Deserialize<'de> for ContainerSupport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContainerSupport
Source§impl PartialEq for ContainerSupport
impl PartialEq for ContainerSupport
Source§impl Serialize for ContainerSupport
impl Serialize for ContainerSupport
impl StructuralPartialEq for ContainerSupport
Auto Trait Implementations§
impl Freeze for ContainerSupport
impl RefUnwindSafe for ContainerSupport
impl Send for ContainerSupport
impl Sync for ContainerSupport
impl Unpin for ContainerSupport
impl UnsafeUnpin for ContainerSupport
impl UnwindSafe for ContainerSupport
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