Trait capnp::private::capability::PipelineHook

source ·
pub trait PipelineHook {
    // Required methods
    fn add_ref(&self) -> Box<dyn PipelineHook>;
    fn get_pipelined_cap(&self, ops: &[PipelineOp]) -> Box<dyn ClientHook>;

    // Provided method
    fn get_pipelined_cap_move(
        &self,
        ops: Vec<PipelineOp>
    ) -> Box<dyn ClientHook> { ... }
}

Required Methods§

source

fn add_ref(&self) -> Box<dyn PipelineHook>

source

fn get_pipelined_cap(&self, ops: &[PipelineOp]) -> Box<dyn ClientHook>

Provided Methods§

source

fn get_pipelined_cap_move(&self, ops: Vec<PipelineOp>) -> Box<dyn ClientHook>

Version of get_pipelined_cap() passing the array by move. May avoid a copy in some cases. Default implementation just calls the other version.

Trait Implementations§

source§

impl Clone for Box<dyn PipelineHook>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§