pub struct InfoOutput {
pub output: CommandOutput,
pub docker_info: Option<DockerInfo>,
}
Expand description
Output from an info command execution
Contains the raw output from the Docker info command and provides convenience methods for parsing system information.
Fields§
§output: CommandOutput
Raw output from the Docker command
docker_info: Option<DockerInfo>
Parsed Docker information
Implementations§
Source§impl InfoOutput
impl InfoOutput
Sourcepub fn server_version(&self) -> Option<&str>
pub fn server_version(&self) -> Option<&str>
Gets the Docker server version
Sourcepub fn storage_driver(&self) -> Option<&str>
pub fn storage_driver(&self) -> Option<&str>
Gets the storage driver
Sourcepub fn container_count(&self) -> u32
pub fn container_count(&self) -> u32
Gets the total number of containers
Sourcepub fn running_containers(&self) -> u32
pub fn running_containers(&self) -> u32
Gets the number of running containers
Sourcepub fn image_count(&self) -> u32
pub fn image_count(&self) -> u32
Gets the number of images
Sourcepub fn is_experimental(&self) -> bool
pub fn is_experimental(&self) -> bool
Returns true if experimental features are enabled
Sourcepub fn operating_system(&self) -> Option<&str>
pub fn operating_system(&self) -> Option<&str>
Gets the operating system
Sourcepub fn architecture(&self) -> Option<&str>
pub fn architecture(&self) -> Option<&str>
Gets the architecture
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Returns true if there are any warnings
Sourcepub fn resource_summary(&self) -> (u32, u32, u32)
pub fn resource_summary(&self) -> (u32, u32, u32)
Gets system resource information (containers and images)
Trait Implementations§
Source§impl Clone for InfoOutput
impl Clone for InfoOutput
Source§fn clone(&self) -> InfoOutput
fn clone(&self) -> InfoOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for InfoOutput
impl RefUnwindSafe for InfoOutput
impl Send for InfoOutput
impl Sync for InfoOutput
impl Unpin for InfoOutput
impl UnwindSafe for InfoOutput
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