pub enum Effect {
Render(Request<RenderOperation>),
PluginNotify(Request<PluginNotify>),
Plugin(Request<PluginCall>),
PluginStream(Request<PluginStreamCall>),
}Expand description
Built-in capabilities the generic shell fulfils.
Variants§
Render(Request<RenderOperation>)
PluginNotify(Request<PluginNotify>)
Plugin(Request<PluginCall>)
PluginStream(Request<PluginStreamCall>)
Implementations§
Source§impl Effect
impl Effect
pub fn is_render(&self) -> bool
pub fn into_render(self) -> Option<Request<RenderOperation>>
Source§impl Effect
impl Effect
pub fn is_plugin_notify(&self) -> bool
pub fn into_plugin_notify(self) -> Option<Request<PluginNotify>>
Source§impl Effect
impl Effect
pub fn is_plugin(&self) -> bool
pub fn into_plugin(self) -> Option<Request<PluginCall>>
Source§impl Effect
impl Effect
pub fn is_plugin_stream(&self) -> bool
pub fn into_plugin_stream(self) -> Option<Request<PluginStreamCall>>
Trait Implementations§
impl Effect for Effect
Source§impl EffectFFI for Effect
impl EffectFFI for Effect
Source§impl From<Request<PluginCall>> for Effect
impl From<Request<PluginCall>> for Effect
Source§fn from(value: Request<PluginCall>) -> Self
fn from(value: Request<PluginCall>) -> Self
Converts to this type from the input type.
Source§impl From<Request<PluginNotify>> for Effect
impl From<Request<PluginNotify>> for Effect
Source§fn from(value: Request<PluginNotify>) -> Self
fn from(value: Request<PluginNotify>) -> Self
Converts to this type from the input type.
Source§impl From<Request<PluginStreamCall>> for Effect
impl From<Request<PluginStreamCall>> for Effect
Source§fn from(value: Request<PluginStreamCall>) -> Self
fn from(value: Request<PluginStreamCall>) -> Self
Converts to this type from the input type.
Source§impl From<Request<RenderOperation>> for Effect
impl From<Request<RenderOperation>> for Effect
Source§fn from(value: Request<RenderOperation>) -> Self
fn from(value: Request<RenderOperation>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Effect
impl !Sync for Effect
impl !UnwindSafe for Effect
impl Freeze for Effect
impl Send for Effect
impl Unpin for Effect
impl UnsafeUnpin for Effect
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