Skip to main content

StreamCapability

Trait StreamCapability 

Source
pub trait StreamCapability: 'static {
    type OpenRequest: 'static;
    type Message: 'static;
    type DomainError: 'static;

    const ID: &'static str;
    const DESCRIPTOR_VERSION: &'static str;
}
Expand description

Static identity and Rust value types generated for one stream Capability.

Required Associated Constants§

Source

const ID: &'static str

Stable Capability series identity.

Source

const DESCRIPTOR_VERSION: &'static str

Exact generated Descriptor version.

Required Associated Types§

Source

type OpenRequest: 'static

Typed request used to open one stream session.

Source

type Message: 'static

Typed message exchanged in both directions after opening.

Source

type DomainError: 'static

Typed Capability-defined terminal or opening error value.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§