[][src]Struct virt::secret::Secret

pub struct Secret { /* fields omitted */ }

Provides APIs for the management of secrets.

See http://libvirt.org/html/libvirt-libvirt-secret.html

Methods

impl Secret[src]

pub fn new(ptr: virSecretPtr) -> Secret[src]

pub fn as_ptr(&self) -> virSecretPtr[src]

pub fn get_connect(&self) -> Result<Connect, Error>[src]

pub fn define_xml(
    conn: &Connect,
    xml: &str,
    flags: u32
) -> Result<Secret, Error>
[src]

pub fn lookup_by_uuid_string(
    conn: &Connect,
    uuid: &str
) -> Result<Secret, Error>
[src]

pub fn lookup_by_usage(
    conn: &Connect,
    usagetype: i32,
    usageid: &str
) -> Result<Secret, Error>
[src]

pub fn get_name(&self) -> Result<String, Error>[src]

pub fn get_usage_id(&self) -> Result<String, Error>[src]

pub fn get_usage_type(&self) -> Result<u32, Error>[src]

pub fn get_uuid_string(&self) -> Result<String, Error>[src]

pub fn get_xml_desc(&self, flags: SecretXMLFlags) -> Result<String, Error>[src]

pub fn set_value(&self, value: &[u8], flags: u32) -> Result<(), Error>[src]

pub fn get_value(&self, size: isize, flags: u32) -> Result<Vec<u8>, Error>[src]

pub fn undefine(&self) -> Result<(), Error>[src]

pub fn free(&mut self) -> Result<(), Error>[src]

Trait Implementations

impl Drop for Secret[src]

impl Debug for Secret[src]

Auto Trait Implementations

impl !Send for Secret

impl Unpin for Secret

impl !Sync for Secret

impl UnwindSafe for Secret

impl RefUnwindSafe for Secret

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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