DecodeExt

Trait DecodeExt 

Source
pub trait DecodeExt<E>: Stream<Item = RawOperation> {
    // Provided method
    fn decode(self) -> Decode<Self, E>
       where E: Extensions,
             Self: Sized { ... }
}
Expand description

An extension trait for Streams that provides a convenient decode method.

Provided Methods§

Source

fn decode(self) -> Decode<Self, E>
where E: Extensions, Self: Sized,

Decode byte streams into p2panda operations.

Implementors§

Source§

impl<T, E> DecodeExt<E> for T
where T: Stream<Item = RawOperation> + ?Sized,