Struct AddCmd

Source
pub struct AddCmd(/* private fields */);
Expand description

Add Secret Ultravisor command.

The Add Secret Ultravisor-call is used to add a secret to the secret store for the current SE-guest.

Implementations§

Source§

impl AddCmd

Source

pub fn new<R>(bin_add_secret_req: &mut R) -> Result<AddCmd, Error>
where R: Read,

Create a new Add Secret command using the provided data.

§Errors

This function will return an error if the provided data does not start with the AddSecretRequest magic Value.

Trait Implementations§

Source§

impl Debug for AddCmd

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl UvCmd for AddCmd

Source§

const UV_IOCTL_NR: u8 = 2u8

The UV IOCTL number of the UV call
Source§

fn data(&mut self) -> Option<&mut [u8]>

Returns data used by this command if available.
Source§

fn rc_fmt(&self, rc: u16, _rrc: u16) -> Option<&'static str>

Converts UV return codes into human readable error messages Read more
Source§

fn cmd(&self) -> u64

Returns the uvdevice IOCTL command that his command uses. Read more

Auto Trait Implementations§

§

impl Freeze for AddCmd

§

impl RefUnwindSafe for AddCmd

§

impl Send for AddCmd

§

impl Sync for AddCmd

§

impl Unpin for AddCmd

§

impl UnwindSafe for AddCmd

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.