Skip to main content

Capture

Trait Capture 

Source
pub trait Capture {
    type Error;

    // Required method
    fn read(&mut self, out: &mut Block) -> Result<bool, Self::Error>;
}
Expand description

Capture one block from an input route.

Required Associated Types§

Source

type Error

Backend error.

Required Methods§

Source

fn read(&mut self, out: &mut Block) -> Result<bool, Self::Error>

Return true for a full block. On false, the destination retains its contents.

§Errors

Returns transport errors from the backend.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§