devela::_dep::symphonia::core::io

Trait Monitor

pub trait Monitor {
    // Required methods
    fn process_byte(&mut self, byte: u8);
    fn process_buf_bytes(&mut self, buf: &[u8]);

    // Provided methods
    fn process_double_bytes(&mut self, buf: [u8; 2]) { ... }
    fn process_triple_bytes(&mut self, buf: [u8; 3]) { ... }
    fn process_quad_bytes(&mut self, buf: [u8; 4]) { ... }
}
Available on crate feature dep_symphonia only.
Expand description

A Monitor provides a common interface to examine the operations observed be a MonitorStream.

Required Methods§

fn process_byte(&mut self, byte: u8)

fn process_buf_bytes(&mut self, buf: &[u8])

Provided Methods§

fn process_double_bytes(&mut self, buf: [u8; 2])

fn process_triple_bytes(&mut self, buf: [u8; 3])

fn process_quad_bytes(&mut self, buf: [u8; 4])

Implementors§