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