State

Trait State 

Source
pub trait State:
    Sized
    + Send
    + Sync
    + 'static {
    // Required method
    fn update_bytes(&mut self, data: &Bytes);

    // Provided methods
    fn finish(self) { ... }
    fn error(self, _e: &BoxError) { ... }
}

Required Methods§

Source

fn update_bytes(&mut self, data: &Bytes)

Provided Methods§

Source

fn finish(self)

Source

fn error(self, _e: &BoxError)

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.

Implementors§