Enum cec_linux::StatusRequest
source · #[repr(u8)]pub enum StatusRequest {
On = 1,
Off = 2,
Once = 3,
}Expand description
Variants§
Trait Implementations§
source§impl Clone for StatusRequest
impl Clone for StatusRequest
source§fn clone(&self) -> StatusRequest
fn clone(&self) -> StatusRequest
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 StatusRequest
impl Debug for StatusRequest
source§impl From<StatusRequest> for u8
impl From<StatusRequest> for u8
source§fn from(enum_value: StatusRequest) -> Self
fn from(enum_value: StatusRequest) -> Self
Converts to this type from the input type.
source§impl PartialEq for StatusRequest
impl PartialEq for StatusRequest
source§fn eq(&self, other: &StatusRequest) -> bool
fn eq(&self, other: &StatusRequest) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u8> for StatusRequest
impl TryFrom<u8> for StatusRequest
§type Error = TryFromPrimitiveError<StatusRequest>
type Error = TryFromPrimitiveError<StatusRequest>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for StatusRequest
impl TryFromPrimitive for StatusRequest
type Primitive = u8
type Error = TryFromPrimitiveError<StatusRequest>
const NAME: &'static str = "StatusRequest"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for StatusRequest
impl Eq for StatusRequest
impl StructuralPartialEq for StatusRequest
Auto Trait Implementations§
impl RefUnwindSafe for StatusRequest
impl Send for StatusRequest
impl Sync for StatusRequest
impl Unpin for StatusRequest
impl UnwindSafe for StatusRequest
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