#[non_exhaustive]#[repr(u8)]pub enum OracleFlag {
Cleared = 0,
}Expand description
Oracle flag.
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.
Cleared = 0
Cleared.
Trait Implementations§
Source§impl From<OracleFlag> for u8
impl From<OracleFlag> for u8
Source§fn from(enum_value: OracleFlag) -> Self
fn from(enum_value: OracleFlag) -> Self
Converts to this type from the input type.
Source§impl TryFrom<u8> for OracleFlag
impl TryFrom<u8> for OracleFlag
Source§type Error = TryFromPrimitiveError<OracleFlag>
type Error = TryFromPrimitiveError<OracleFlag>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for OracleFlag
impl TryFromPrimitive for OracleFlag
const NAME: &'static str = "OracleFlag"
type Primitive = u8
type Error = TryFromPrimitiveError<OracleFlag>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for OracleFlag
impl RefUnwindSafe for OracleFlag
impl Send for OracleFlag
impl Sync for OracleFlag
impl Unpin for OracleFlag
impl UnwindSafe for OracleFlag
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