#[repr(i32)]enum SmcccTrngError {
NotSupported = -1,
InvalidParameters = -2,
NoEntropy = -3,
}Expand description
Error codes, as defined by the SMCCC TRNG (DEN0098).
Note that values are strictly positive but API return values are strictly negative.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SmcccTrngError
impl Clone for SmcccTrngError
Source§fn clone(&self) -> SmcccTrngError
fn clone(&self) -> SmcccTrngError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SmcccTrngError
impl Debug for SmcccTrngError
Source§impl From<SmcccTrngError> for NegativeI32
impl From<SmcccTrngError> for NegativeI32
Source§fn from(e: SmcccTrngError) -> Self
fn from(e: SmcccTrngError) -> Self
Converts to this type from the input type.
Source§impl From<SmcccTrngError> for i32
impl From<SmcccTrngError> for i32
Source§fn from(e: SmcccTrngError) -> Self
fn from(e: SmcccTrngError) -> Self
Converts to this type from the input type.
impl Copy for SmcccTrngError
Auto Trait Implementations§
impl Freeze for SmcccTrngError
impl RefUnwindSafe for SmcccTrngError
impl Send for SmcccTrngError
impl Sync for SmcccTrngError
impl Unpin for SmcccTrngError
impl UnwindSafe for SmcccTrngError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.