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§
Required Associated Types§
type Message: Serialize + DeserializeOwned
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.