Enum cec_linux::CecModeFollower
source · #[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
impl Clone for CecModeFollower
source§fn clone(&self) -> CecModeFollower
fn clone(&self) -> CecModeFollower
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CecModeFollower
impl Debug for CecModeFollower
source§impl From<CecModeFollower> for u32
impl From<CecModeFollower> for u32
source§fn from(enum_value: CecModeFollower) -> Self
fn from(enum_value: CecModeFollower) -> Self
source§impl PartialEq for CecModeFollower
impl PartialEq for CecModeFollower
source§fn eq(&self, other: &CecModeFollower) -> bool
fn eq(&self, other: &CecModeFollower) -> bool
self and other values to be equal, and is used
by ==.