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