Struct lxd::Info [] [src]

pub struct Info {
    pub architecture: String,
    pub config: BTreeMap<String, String>,
    pub devices: BTreeMap<String, BTreeMap<String, String>>,
    pub ephemeral: bool,
    pub profiles: Vec<String>,
    pub created_at: String,
    pub expanded_config: BTreeMap<String, String>,
    pub expanded_devices: BTreeMap<String, BTreeMap<String, String>>,
    pub name: String,
    pub stateful: bool,
    pub status: String,
    pub status_code: usize,
    pub last_used_at: String,
    pub state: Option<State>,
    pub snapshots: Option<Vec<Snapshot>>,
}

LXD container information

Fields

Methods

impl Info
[src]

Retrieve LXD container information from all containers

Arguments

  • location - The location of the host

Return

The LXD container information

Errors

Errors that are encountered while retrieving info will be returned

Example

use lxd::{Info, Location};

let info = Info::all(Location::Local).unwrap();

Retrieve LXD container information from one container

Arguments

  • location - The location of the host
  • name - The name of the container

Return

The LXD container information

Errors

Errors that are encountered while retrieving info will be returned

Example

use lxd::{Container, Info, Location};

let mut container = Container::new(Location::Local, "test-info", "ubuntu:16.04").unwrap();
let info = Info::new(Location::Local, "test-info").unwrap();

Trait Implementations

impl Clone for Info
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Info
[src]

Formats the value using the given formatter.

impl Eq for Info
[src]

impl PartialEq for Info
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.