pub struct StreamImpl {
pub stream: Receiver<Line>,
pub standalone: bool,
}Expand description
Represents a Stream handled by a plugin on reaction core’s side.
During PluginInfo::load_config, the plugin should create a remoc::rch::mpsc::channel of Line.
It will keep the sending side for itself and put the receiving side in a StreamImpl.
The plugin should start sending Lines in the channel only after PluginInfo::start has been called by reaction core.
Fields§
§stream: Receiver<Line>§standalone: boolWhether this stream works standalone, or if it needs other streams or actions to be fed.
Defaults to true.
When false, reaction will exit if it’s the last one standing.
Trait Implementations§
Source§impl Debug for StreamImpl
impl Debug for StreamImpl
Source§impl<'de> Deserialize<'de> for StreamImpl
impl<'de> Deserialize<'de> for StreamImpl
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 StreamImpl
impl !RefUnwindSafe for StreamImpl
impl Send for StreamImpl
impl Sync for StreamImpl
impl Unpin for StreamImpl
impl !UnwindSafe for StreamImpl
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