#[repr(u8)]pub enum CecAbortReason {
Unrecognized = 0,
WrongMode = 1,
NoSource = 2,
InvalidOp = 3,
Refused = 4,
Other = 5,
}
Expand description
used by CecOpcode::FeatureAbort
Variants§
Unrecognized = 0
Unrecognized opcode
WrongMode = 1
Not in correct mode to respond
NoSource = 2
Cannot provide source
InvalidOp = 3
Invalid operand
Refused = 4
Other = 5
Trait Implementations§
Source§impl Clone for CecAbortReason
impl Clone for CecAbortReason
Source§fn clone(&self) -> CecAbortReason
fn clone(&self) -> CecAbortReason
Returns a duplicate 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 CecAbortReason
impl Debug for CecAbortReason
Source§impl From<CecAbortReason> for u8
impl From<CecAbortReason> for u8
Source§fn from(enum_value: CecAbortReason) -> Self
fn from(enum_value: CecAbortReason) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CecAbortReason
impl PartialEq for CecAbortReason
Source§impl TryFrom<u8> for CecAbortReason
impl TryFrom<u8> for CecAbortReason
Source§type Error = TryFromPrimitiveError<CecAbortReason>
type Error = TryFromPrimitiveError<CecAbortReason>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for CecAbortReason
impl TryFromPrimitive for CecAbortReason
const NAME: &'static str = "CecAbortReason"
type Primitive = u8
type Error = TryFromPrimitiveError<CecAbortReason>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for CecAbortReason
impl Eq for CecAbortReason
impl StructuralPartialEq for CecAbortReason
Auto Trait Implementations§
impl Freeze for CecAbortReason
impl RefUnwindSafe for CecAbortReason
impl Send for CecAbortReason
impl Sync for CecAbortReason
impl Unpin for CecAbortReason
impl UnwindSafe for CecAbortReason
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