Skip to main content

Pusher

Trait Pusher 

Source
pub trait Pusher: Send + 'static {
    type Error: Send + Unpin + 'static;

    // Required method
    fn push(
        &mut self,
        range: &ProgressEntry,
        content: Bytes,
    ) -> Result<(), (Self::Error, Bytes)>;

    // Provided method
    fn flush(&mut self) -> Result<(), Self::Error> { ... }
}

Required Associated Types§

Source

type Error: Send + Unpin + 'static

Required Methods§

Source

fn push( &mut self, range: &ProgressEntry, content: Bytes, ) -> Result<(), (Self::Error, Bytes)>

Provided Methods§

Source

fn flush(&mut self) -> Result<(), Self::Error>

Implementors§