Struct VirtualMuxAccel

Source
pub struct VirtualMuxAccel<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> VirtualMuxAccel<'a>

Source

pub fn new(mux_accel: &'a MuxAccel<'a>) -> VirtualMuxAccel<'a>

Source

pub fn set_client(&'a self, client: &'a dyn Client<'a>)

Source

pub fn load_binary(&self, input: &[u8]) -> Result<(), ErrorCode>

Source

pub fn load_data(&self, address: usize, data: &[u8]) -> Result<(), ErrorCode>

Source

pub fn run( &self, address: usize, output: &'static mut [u8], ) -> Result<(), (ErrorCode, &'static mut [u8])>

Source

pub fn clear_data(&self)

Disable the Accel hardware and clear the keys and any other sensitive data

Trait Implementations§

Source§

impl<'a> Client<'a> for VirtualMuxAccel<'a>

Source§

fn op_done(&'a self, result: Result<(), ErrorCode>, output: &'static mut [u8])

This callback is called when a operation is computed. On error or success output will contain a reference to the original data supplied to run().
Source§

impl<'a> ListNode<'a, VirtualMuxAccel<'a>> for VirtualMuxAccel<'a>

Source§

fn next(&self) -> &'a ListLink<'_, VirtualMuxAccel<'a>>

Auto Trait Implementations§

§

impl<'a> !Freeze for VirtualMuxAccel<'a>

§

impl<'a> !RefUnwindSafe for VirtualMuxAccel<'a>

§

impl<'a> !Send for VirtualMuxAccel<'a>

§

impl<'a> !Sync for VirtualMuxAccel<'a>

§

impl<'a> Unpin for VirtualMuxAccel<'a>

§

impl<'a> !UnwindSafe for VirtualMuxAccel<'a>

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.