AsChannel

Trait AsChannel 

Source
pub trait AsChannel {
    // Required methods
    fn buffer<F: FnOnce(&Path, &str) -> u64>(&self, init: F) -> u64;
    fn duration(&self) -> Duration;
    fn channel(&self) -> u64;
}

Required Methods§

Source

fn buffer<F: FnOnce(&Path, &str) -> u64>(&self, init: F) -> u64

Source

fn duration(&self) -> Duration

Source

fn channel(&self) -> u64

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.

Implementations on Foreign Types§

Source§

impl<T: AsChannel> AsChannel for &T

Source§

fn buffer<F: FnOnce(&Path, &str) -> u64>(&self, init: F) -> u64

Source§

fn duration(&self) -> Duration

Source§

fn channel(&self) -> u64

Implementors§

Source§

impl<'a, S: AsRef<str>> AsChannel for Channel<'a, Buffer<S>>

Source§

impl<S: AsRef<str>> AsChannel for Buffer<S>