Trait ControlPointOperation

Source
pub trait ControlPointOperation: Encodable<Error = Error> {
    // Required method
    fn opcode() -> ControlPointOpcode;

    // Provided method
    fn check_opcode(raw_value: u8) -> Result<ControlPointOpcode, PacketError> { ... }
}
Expand description

Trait for objects that represent a Broadcast Audio Scan Control Point characteristic. When written by a client, the Broadcast Audio Scan Control Point characteristic is defined as an 8-bit enumerated value, known as the opcode, followed by zero or more parameter octets. The opcode represents the operation that would be performed in the Broadcast Audio Scan Service server. See BASS spec v1.0 Section 3.1 for details.

Required Methods§

Provided Methods§

Source

fn check_opcode(raw_value: u8) -> Result<ControlPointOpcode, PacketError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§