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 Types§

source

type Message: Serialize + DeserializeOwned

source

type Error: ApiError

After an error occured the stream get’s closed

Required Associated Constants§

source

const KIND: StreamKind

source

const ACTION: &'static str

Object Safety§

This trait is not object safe.

Implementors§