Enum BootStatus
#[non_exhaustive]pub enum BootStatus {
Good,
Bad,
Other(String),
}Expand description
The boot status of a slot, as in the boot-status key.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Good
The bootloader considers the slot bootable.
Bad
The bootloader considers the slot unbootable.
Other(String)
A value that this version of the crate doesn’t know.
Implementations§
§impl BootStatus
impl BootStatus
Trait Implementations§
§impl AsRef<str> for BootStatus
impl AsRef<str> for BootStatus
§impl Clone for BootStatus
impl Clone for BootStatus
§fn clone(&self) -> BootStatus
fn clone(&self) -> BootStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for BootStatus
impl Debug for BootStatus
§impl<'de> Deserialize<'de> for BootStatus
impl<'de> Deserialize<'de> for BootStatus
§fn deserialize<D>(__deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(__deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for BootStatus
impl Display for BootStatus
impl Eq for BootStatus
§impl From<&str> for BootStatus
impl From<&str> for BootStatus
§impl From<BootStatus> for Value<'static>
impl From<BootStatus> for Value<'static>
§fn from(__value: BootStatus) -> Self
fn from(__value: BootStatus) -> Self
Converts to this type from the input type.
§impl From<String> for BootStatus
impl From<String> for BootStatus
§impl FromStr for BootStatus
impl FromStr for BootStatus
§impl Hash for BootStatus
impl Hash for BootStatus
§impl PartialEq for BootStatus
impl PartialEq for BootStatus
§impl Serialize for BootStatus
impl Serialize for BootStatus
impl StructuralPartialEq for BootStatus
§impl TryFrom<OwnedValue> for BootStatus
impl TryFrom<OwnedValue> for BootStatus
§impl<'__a> TryFrom<Value<'__a>> for BootStatus
impl<'__a> TryFrom<Value<'__a>> for BootStatus
§impl Type for BootStatus
impl Type for BootStatus
Auto Trait Implementations§
impl Freeze for BootStatus
impl RefUnwindSafe for BootStatus
impl Send for BootStatus
impl Sync for BootStatus
impl Unpin for BootStatus
impl UnsafeUnpin for BootStatus
impl UnwindSafe for BootStatus
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.