[][src]Struct lxd::Info

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

architecture: Stringconfig: BTreeMap<String, String>devices: BTreeMap<String, BTreeMap<String, String>>ephemeral: boolprofiles: Vec<String>created_at: Stringexpanded_config: BTreeMap<String, String>expanded_devices: BTreeMap<String, BTreeMap<String, String>>name: Stringstateful: boolstatus: Stringstatus_code: usizelast_used_at: Stringstate: Option<State>snapshots: Option<Vec<Snapshot>>

Methods

impl Info[src]

pub fn all(location: Location) -> Result<Vec<Self>>[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();

pub fn new(location: Location, name: &str) -> Result<Self>[src]

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 Eq for Info[src]

impl PartialEq<Info> for Info[src]

impl Clone for Info[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Info[src]

impl Serialize for Info[src]

impl<'de> Deserialize<'de> for Info[src]

Auto Trait Implementations

impl Send for Info

impl Sync for Info

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]