Skip to main content

TaskInbox

Trait TaskInbox 

Source
pub trait TaskInbox:
    Send
    + Sync
    + Debug {
    // Required method
    fn deliver(&self, message: String) -> Result<(), String>;
}
Expand description

Delivers a message to a running task’s work.

Required Methods§

Source

fn deliver(&self, message: String) -> Result<(), String>

Err says why the work cannot take it now.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§