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§
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".