Trait Stream

Source
pub trait Stream: Serialize + DeserializeOwned {
    type Message: Serialize + DeserializeOwned;
    type Error: ApiError;

    const KIND: StreamKind;
    const ACTION: &'static str;
}
Available on crate feature feature only.
Expand description

The struct of the stream itself is like a request to start the stream

Required Associated Constants§

Source

const KIND: StreamKind

Source

const ACTION: &'static str

Required Associated Types§

Source

type Message: Serialize + DeserializeOwned

Source

type Error: ApiError

After an error occured the stream get’s closed

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§