Skip to main content

OperationDescriptor

Trait OperationDescriptor 

Source
pub trait OperationDescriptor {
    type Input: Serialize;
    type Progress: DeserializeOwned + Send + 'static;
    type Output: DeserializeOwned + Send + 'static;

    const KEY: &'static str;
    const SUBJECT: &'static str;
    const CALLER_CAPABILITIES: &'static [&'static str];
    const READ_CAPABILITIES: &'static [&'static str];
    const CANCEL_CAPABILITIES: &'static [&'static str];
    const CANCELABLE: bool;
}

Required Associated Constants§

Source

const KEY: &'static str

Source

const SUBJECT: &'static str

Source

const CALLER_CAPABILITIES: &'static [&'static str]

Source

const READ_CAPABILITIES: &'static [&'static str]

Source

const CANCEL_CAPABILITIES: &'static [&'static str]

Source

const CANCELABLE: bool

Required Associated Types§

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§