Skip to main content

RequestCapability

Trait RequestCapability 

Source
pub trait RequestCapability: 'static {
    type Request: 'static;
    type Response: 'static;
    type DomainError: 'static;

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

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 Request: 'static

Typed request value.

Source

type Response: 'static

Typed success value.

Source

type DomainError: 'static

Typed Capability-defined error value.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§