Skip to main content

ActionSource

Trait ActionSource 

Source
pub trait ActionSource: Sized {
    type Source: Send + Sync;

    // Required method
    fn source(&self) -> &Self::Source;
}

Required Associated Types§

Source

type Source: Send + Sync

Where this action originates from.

Required Methods§

Source

fn source(&self) -> &Self::Source

Where this action originates from.

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§

Source§

impl<Action: ActionSource, Value: Send + Sync> ActionSource for FulfilledAction<Action, Value>

Source§

type Source = <Action as ActionSource>::Source