Struct cml::rest::CmlUser [−][src]
pub struct CmlUser { /* fields omitted */ }
Implementations
impl CmlUser
[src]
impl CmlUser
[src]pub fn host(&self) -> &str
[src]
pub fn username(&self) -> &str
[src]
pub fn roles(&self) -> Vec<&str>
[src]
pub async fn labs(&self, show_all: bool) -> Result<Vec<String>, CmlError>
[src]
pub async fn labs(&self, show_all: bool) -> Result<Vec<String>, CmlError>
[src]Get a list of labs visible to the user.
show_all
: If true (and the user is an admin), returns a list of all labs.
pub async fn lab(&self, lab_id: &str) -> Result<Option<Lab>, CmlError>
[src]
pub async fn lab(&self, lab_id: &str) -> Result<Option<Lab>, CmlError>
[src]Gets a lab’s information. If the lab is not found, returns Ok(None)
pub async fn lab_nodes(
&self,
lab_id: &str
) -> Result<Option<Vec<String>>, CmlError>
[src]
pub async fn lab_nodes(
&self,
lab_id: &str
) -> Result<Option<Vec<String>>, CmlError>
[src]Get’s a list of the lab’s nodes.
pub async fn lab_node(
&self,
lab_id: &str,
node_id: &str
) -> Result<Option<SimpleNode>, CmlError>
[src]
&self,
lab_id: &str,
node_id: &str
) -> Result<Option<SimpleNode>, CmlError>
pub async fn lab_node_config(
&self,
lab_id: &str,
node_id: &str
) -> Result<Option<String>, CmlError>
[src]
pub async fn lab_node_config(
&self,
lab_id: &str,
node_id: &str
) -> Result<Option<String>, CmlError>
[src]Gets the currently saved configuration for the device. May not match the currently running configuration.
pub async fn lab_node_state(
&self,
lab_id: &str,
node_id: &str
) -> Result<Option<State>, CmlError>
[src]
&self,
lab_id: &str,
node_id: &str
) -> Result<Option<State>, CmlError>
pub async fn lab_node_start(
&self,
lab_id: &str,
node_id: &str
) -> Result<Option<State>, CmlError>
[src]
&self,
lab_id: &str,
node_id: &str
) -> Result<Option<State>, CmlError>
pub async fn lab_node_stop(
&self,
lab_id: &str,
node_id: &str
) -> Result<Option<()>, CmlError>
[src]
&self,
lab_id: &str,
node_id: &str
) -> Result<Option<()>, CmlError>
pub async fn lab_node_keys_console(
&self,
lab_id: &str,
node_id: &str,
line: Option<u64>
) -> Result<Option<String>, CmlError>
[src]
&self,
lab_id: &str,
node_id: &str,
line: Option<u64>
) -> Result<Option<String>, CmlError>
pub async fn lab_topology(
&self,
lab_id: &str,
include_configurations: bool
) -> Result<Option<LabTopology>, CmlError>
[src]
&self,
lab_id: &str,
include_configurations: bool
) -> Result<Option<LabTopology>, CmlError>
pub async fn lab_topologies<'b, I: IntoIterator<Item = &'b S>, S: AsRef<str> + 'b>(
&self,
lab_ids: I,
include_configurations: bool
) -> Result<Vec<(&'b str, Option<LabTopology>)>, CmlError>
[src]
&self,
lab_ids: I,
include_configurations: bool
) -> Result<Vec<(&'b str, Option<LabTopology>)>, CmlError>
pub async fn keys_console(
&self,
show_all: bool
) -> Result<HashMap<String, Console>, CmlError>
[src]
pub async fn keys_console(
&self,
show_all: bool
) -> Result<HashMap<String, Console>, CmlError>
[src]Returns the currently available console lines. This does not show lines from shutdown devices.
pub async fn keys_vnc(
&self,
show_all: bool
) -> Result<HashMap<String, VNC>, CmlError>
[src]
pub async fn keys_vnc(
&self,
show_all: bool
) -> Result<HashMap<String, VNC>, CmlError>
[src]Returns the currently available keys for devices capable of VNC. This does not show keys from shutdown or disabled devices.
pub async fn extract_node_config(
&self,
lab_id: &str,
node_id: &str
) -> Result<Option<String>, CmlError>
[src]
pub async fn extract_node_config(
&self,
lab_id: &str,
node_id: &str
) -> Result<Option<String>, CmlError>
[src]Extracts the configuration from a running node
Returns None if the lab nor node cannot be found
pub async fn simplified_node_definitions(
&self
) -> Result<Vec<SimpleNodeDefinition>, CmlError>
[src]
&self
) -> Result<Vec<SimpleNodeDefinition>, CmlError>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for CmlUser
impl Send for CmlUser
impl Sync for CmlUser
impl Unpin for CmlUser
impl !UnwindSafe for CmlUser
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more