Skip to main content

IWorkRun

Trait IWorkRun 

Source
pub trait IWorkRun: IWorkRef + IClosed {
    type Status;
    type Promise;
    type Options;
    type Stream: IStream;
    type Reason;

    // Required methods
    fn work_status(&self) -> Self::Status;
    fn work_result(&self) -> Self::Promise;
    fn work_events(&self, options: Self::Options) -> Self::Stream;
    fn work_cancel(&self, reason: Self::Reason) -> Self::Promise;
}

Required Associated Types§

Required Methods§

Source

fn work_status(&self) -> Self::Status

Source

fn work_result(&self) -> Self::Promise

Source

fn work_events(&self, options: Self::Options) -> Self::Stream

Source

fn work_cancel(&self, reason: Self::Reason) -> Self::Promise

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§