opentitanlib::chip::rom_error

Struct RomError

Source
#[repr(transparent)]
pub struct RomError(pub u32);

Tuple Fields§

§0: u32

Implementations§

Source§

impl RomError

Source

pub const Ok: RomError = _

Source

pub const WriteBootdataThenReboot: RomError = _

Source

pub const Unknown: RomError = _

Source

pub const SigverifyBadRsaSignature: RomError = _

Source

pub const SigverifyBadSpxSignature: RomError = _

Source

pub const SigverifyBadKey: RomError = _

Source

pub const SigverifyBadRsaKey: RomError = _

Source

pub const SigverifyBadSpxKey: RomError = _

Source

pub const SigverifyLargeRsaSignature: RomError = _

Source

pub const SigverifyBadEcdsaSignature: RomError = _

Source

pub const SigverifyBadAuthPartition: RomError = _

Source

pub const SigverifyBadEcdsaKey: RomError = _

Source

pub const SigverifyBadSpxConfig: RomError = _

Source

pub const KeymgrInternal: RomError = _

Source

pub const ManifestBadEntryPoint: RomError = _

Source

pub const ManifestBadCodeRegion: RomError = _

Source

pub const ManifestBadSignedRegion: RomError = _

Source

pub const ManifestBadExtension: RomError = _

Source

pub const ManifestBadVersionMajor: RomError = _

Source

pub const AlertBadIndex: RomError = _

Source

pub const AlertBadClass: RomError = _

Source

pub const AlertBadEnable: RomError = _

Source

pub const AlertBadEscalation: RomError = _

Source

pub const AlertBadCrc32: RomError = _

Source

pub const RomBootFailed: RomError = _

Source

pub const RomResetReasonFault: RomError = _

Source

pub const Interrupt: RomError = _

Source

pub const EpmpBadCheck: RomError = _

Source

pub const KmacInvalidStatus: RomError = _

Source

pub const KmacInvalidKeySize: RomError = _

Source

pub const OtbnInvalidArgument: RomError = _

Source

pub const OtbnBadOffsetLen: RomError = _

Source

pub const OtbnExecutionFailed: RomError = _

Source

pub const OtbnSecWipeImemFailed: RomError = _

Source

pub const OtbnSecWipeDmemFailed: RomError = _

Source

pub const OtbnBadInsnCount: RomError = _

Source

pub const OtbnUnavailable: RomError = _

Source

pub const FlashCtrlDataRead: RomError = _

Source

pub const FlashCtrlInfoRead: RomError = _

Source

pub const FlashCtrlDataWrite: RomError = _

Source

pub const FlashCtrlInfoWrite: RomError = _

Source

pub const FlashCtrlDataErase: RomError = _

Source

pub const FlashCtrlInfoErase: RomError = _

Source

pub const FlashCtrlDataEraseVerify: RomError = _

Source

pub const BootPolicyBadIdentifier: RomError = _

Source

pub const BootPolicyBadLength: RomError = _

Source

pub const BootPolicyRollback: RomError = _

Source

pub const BootstrapEraseAddress: RomError = _

Source

pub const BootstrapProgramAddress: RomError = _

Source

pub const BootstrapInvalidState: RomError = _

Source

pub const BootstrapNotRequested: RomError = _

Source

pub const BootstrapDisabledRomExt: RomError = _

Source

pub const LogBadFormatSpecifier: RomError = _

Source

pub const BootDataNotFound: RomError = _

Source

pub const BootDataWriteCheck: RomError = _

Source

pub const BootDataInvalid: RomError = _

Source

pub const SpiDevicePayloadOverflow: RomError = _

Source

pub const AstInitNotDone: RomError = _

Source

pub const RstmgrBadInit: RomError = _

Source

pub const RndBadCrc32: RomError = _

Source

pub const BootSvcBadHeader: RomError = _

Source

pub const BootSvcBadSlot: RomError = _

Source

pub const BootSvcBadSecVer: RomError = _

Source

pub const RomExtBootFailed: RomError = _

Source

pub const XModemTimeoutStart: RomError = _

Source

pub const XModemTimeoutPacket: RomError = _

Source

pub const XModemTimeoutData: RomError = _

Source

pub const XModemTimeoutCrc: RomError = _

Source

pub const XModemTimeoutAck: RomError = _

Source

pub const XModemCrc: RomError = _

Source

pub const XModemEndOfFile: RomError = _

Source

pub const XModemCancel: RomError = _

Source

pub const XModemUnknown: RomError = _

Source

pub const XModemProtocol: RomError = _

Source

pub const XModemTooManyErrors: RomError = _

Source

pub const RomExtInterrupt: RomError = _

Source

pub const BootLogInvalid: RomError = _

Source

pub const Asn1Internal: RomError = _

Source

pub const Asn1StartInvalidArgument: RomError = _

Source

pub const Asn1PushBytesInvalidArgument: RomError = _

Source

pub const Asn1PushIntegerPadInvalidArgument: RomError = _

Source

pub const Asn1PushIntegerInvalidArgument: RomError = _

Source

pub const Asn1FinishBitstringInvalidArgument: RomError = _

Source

pub const Asn1BufferExhausted: RomError = _

Source

pub const RetRamBadVersion: RomError = _

Source

pub const RescueReboot: RomError = _

Source

pub const RescueBadMode: RomError = _

Source

pub const RescueImageTooBig: RomError = _

Source

pub const CertInternal: RomError = _

Source

pub const CertInvalidArgument: RomError = _

Source

pub const CertInvalidSize: RomError = _

Source

pub const OwnershipInvalidNonce: RomError = _

Source

pub const OwnershipInvalidMode: RomError = _

Source

pub const OwnershipInvalidSignature: RomError = _

Source

pub const OwnershipInvalidState: RomError = _

Source

pub const OwnershipInvalidRequest: RomError = _

Source

pub const OwnershipInvalidTag: RomError = _

Source

pub const OwnershipInvalidTagLength: RomError = _

Source

pub const OwnershipDuplicateItem: RomError = _

Source

pub const OwnershipFlashConfigLenth: RomError = _

Source

pub const OwnershipInvalidInfoPage: RomError = _

Source

pub const OwnershipBadInfoPage: RomError = _

Source

pub const OwnershipNoOwner: RomError = _

Source

pub const OwnershipKeyNotFound: RomError = _

Source

pub const PersoTlvInternal: RomError = _

Source

pub const PersoTlvCertObjNotFound: RomError = _

Source

pub const PersoTlvCertNameTooLong: RomError = _

Source

pub const PersoTlvOutputBufTooSmall: RomError = _

Source§

impl RomError

Source

pub const VARIANTS: &[&'static str] = _

Source

pub fn is_known_value(&self) -> bool

Trait Implementations§

Source§

impl Binary for RomError

Source§

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

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

impl Clone for RomError

Source§

fn clone(&self) -> RomError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RomError

Source§

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

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

impl Default for RomError

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for RomError

Source§

fn deserialize<D>(deserializer: D) -> Result<RomError, D::Error>
where D: Deserializer<'de>,

Deserializes the value by forwarding to deserialize_any. deserialize_any will forward strings to the string visitor and forward integers to the appropriate integer visitor.

Source§

impl Display for RomError

Source§

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

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

impl Error for RomError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<RomError> for Result<(), Error>

Source§

fn from(error: RomError) -> Self

Converts to this type from the input type.
Source§

impl From<RomError> for Result<(), RomError>

Source§

fn from(error: RomError) -> Self

Converts to this type from the input type.
Source§

impl From<RomError> for u32

Source§

fn from(v: RomError) -> u32

Converts to this type from the input type.
Source§

impl FromStr for RomError

Source§

type Err = ParseError

The associated error which can be returned from parsing.
Source§

fn from_str(value: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for RomError

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl LowerHex for RomError

Source§

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

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

impl Octal for RomError

Source§

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

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

impl Ord for RomError

Source§

fn cmp(&self, other: &RomError) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for RomError

Source§

fn eq(&self, other: &RomError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for RomError

Source§

fn partial_cmp(&self, other: &RomError) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for RomError

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serializes the enumerated values. All named discriminants are serialized to strings. All unknown values are serialized as integers.

Source§

impl TryFrom<i16> for RomError

Source§

type Error = TryFromIntError

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

fn try_from(value: i16) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i32> for RomError

Source§

type Error = TryFromIntError

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

fn try_from(value: i32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i64> for RomError

Source§

type Error = TryFromIntError

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

fn try_from(value: i64) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i8> for RomError

Source§

type Error = TryFromIntError

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

fn try_from(value: i8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u16> for RomError

Source§

type Error = TryFromIntError

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

fn try_from(value: u16) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u32> for RomError

Source§

type Error = TryFromIntError

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

fn try_from(value: u32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u64> for RomError

Source§

type Error = TryFromIntError

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

fn try_from(value: u64) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u8> for RomError

Source§

type Error = TryFromIntError

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

fn try_from(value: u8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl UpperHex for RomError

Source§

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

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

impl ValueEnum for RomError

Source§

fn value_variants<'a>() -> &'a [Self]

All possible argument values, in display order.
Source§

fn to_possible_value(&self) -> Option<PossibleValue>

The canonical argument value. Read more
§

fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

Parse an argument into Self.
Source§

impl Copy for RomError

Source§

impl Eq for RomError

Source§

impl StructuralPartialEq for RomError

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Annotate for T
where T: Serialize + ?Sized,

§

default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>

§

default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>

§

default fn as_annotate(&self) -> Option<&dyn Annotate>

§

default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T, U> ConsoleRecv<T> for U

Source§

fn recv(device: &T, timeout: Duration, quiet: bool) -> Result<U, Error>

Source§

impl<T, U> ConsoleSend<T> for U
where T: ConsoleDevice + ?Sized, U: Serialize,

Source§

fn send(&self, device: &T) -> Result<(), Error>

Source§

fn send_with_crc(&self, device: &T) -> Result<(), Error>

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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> RuleType for T
where T: Copy + Debug + Eq + Hash + Ord,