pub struct ActionImpl {
pub tx: Sender<Exec>,
}Expand description
Represents an Action handled by a plugin on reaction core’s side.
During PluginInfo::load_config, the plugin should create a remoc::rch::mpsc::channel of Exec.
It will keep the receiving side for itself and put the sending side in a ActionImpl.
The plugin will start receiving Execs in the channel from reaction only after PluginInfo::start has been called by reaction core.
Fields§
§tx: Sender<Exec>Trait Implementations§
Source§impl Clone for ActionImpl
impl Clone for ActionImpl
Source§fn clone(&self) -> ActionImpl
fn clone(&self) -> ActionImpl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for ActionImpl
impl<'de> Deserialize<'de> for ActionImpl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ActionImpl
impl RefUnwindSafe for ActionImpl
impl Send for ActionImpl
impl Sync for ActionImpl
impl Unpin for ActionImpl
impl UnwindSafe for ActionImpl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more