pub enum Effect {
Render(Request<RenderOperation>),
PluginNotify(Request<PluginNotify>),
Plugin(Request<PluginCall>),
}Expand description
Built-in capabilities the generic shell fulfils.
Variants§
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>>
Trait Implementations§
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<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.
impl Effect for Effect
Auto Trait Implementations§
impl Freeze for Effect
impl !RefUnwindSafe for Effect
impl Send for Effect
impl !Sync for Effect
impl Unpin for Effect
impl UnsafeUnpin for Effect
impl !UnwindSafe 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