Skip to main content

WatchStreamValueDecoder

Trait WatchStreamValueDecoder 

Source
pub trait WatchStreamValueDecoder {
    type Item;
    type Error: Error + Send + 'static;

    // Required method
    fn decode_watch_response(
        &mut self,
        key: &[u8],
        value: &[u8],
    ) -> Result<Self::Item, Self::Error>;
}

Required Associated Types§

Source

type Item

Source

type Error: Error + Send + 'static

Required Methods§

Source

fn decode_watch_response( &mut self, key: &[u8], value: &[u8], ) -> Result<Self::Item, Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§