Skip to main content

ConfigurablePpi

Trait ConfigurablePpi 

Source
pub trait ConfigurablePpi: Ppi {
    // Required methods
    fn set_task_endpoint<T>(&mut self, task: &T)
       where T: Task;
    fn set_event_endpoint<E>(&mut self, event: &E)
       where E: Event;
}
Expand description

Traits that extends the Ppi trait, marking a channel as fully configurable.

Required Methods§

Source

fn set_task_endpoint<T>(&mut self, task: &T)
where T: Task,

Sets the task that must be triggered when the configured event occurs. The user must provide a reference to the task.

Source

fn set_event_endpoint<E>(&mut self, event: &E)
where E: Event,

Sets the event that will trigger the chosen task(s). The user must provide a reference to the event.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<P> ConfigurablePpi for P
where P: Channel + NotFixed,