#[repr(u32)]
pub enum CecModeFollower { RepliesOnly = 0, All = 16, Exclusive = 32, ExclusivePassthru = 48, Monitor = 224, MonitorAll = 240, }
Expand description

Modes for follower

Variants§

§

RepliesOnly = 0

Default: Only retrieve replies to own (this handles) messages

§

All = 16

Retrieve all messages for this device.
Not possible with CecModeInitiator::None. Needs Capabilities::TRANSMIT.

§

Exclusive = 32

Retrieve all messages and lock this device.
Not possible with CecModeInitiator::None. Needs Capabilities::TRANSMIT.

§

ExclusivePassthru = 48

Passthrough mode. The CEC framework will pass on most core messages without processing them and the follower will have to implement those messages. There are some messages that the core will always process, regardless of the passthrough mode.
Not possible with CecModeInitiator::None. Needs Capabilities::TRANSMIT.

Core messgages:

§

Monitor = 224

Get all messages sent or received (directed or brodcasted) by this device. Only possible with CecModeInitiator::None. Needs CAP_NET_ADMIN.

§

MonitorAll = 240

As above but for all messages on the bus.
Additionally needs Capabilities::MONITOR_ALL.

Trait Implementations§

source§

impl Clone for CecModeFollower

source§

fn clone(&self) -> CecModeFollower

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CecModeFollower

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<CecModeFollower> for u32

source§

fn from(enum_value: CecModeFollower) -> Self

Converts to this type from the input type.
source§

impl PartialEq for CecModeFollower

source§

fn eq(&self, other: &CecModeFollower) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<u32> for CecModeFollower

§

type Error = TryFromPrimitiveError<CecModeFollower>

The type returned in the event of a conversion error.
source§

fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
source§

impl TryFromPrimitive for CecModeFollower

§

type Primitive = u32

§

type Error = TryFromPrimitiveError<CecModeFollower>

source§

const NAME: &'static str = "CecModeFollower"

source§

fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>

source§

impl Copy for CecModeFollower

source§

impl Eq for CecModeFollower

source§

impl StructuralPartialEq for CecModeFollower

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.