Skip to main content

Effect

Enum Effect 

Source
pub enum Effect {
    Render(Request<RenderOperation>),
    PluginNotify(Request<PluginNotify>),
    Plugin(Request<PluginCall>),
}
Expand description

Built-in capabilities the generic shell fulfils.

Variants§

Implementations§

Trait Implementations§

Source§

impl Debug for Effect

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl EffectFFI for Effect

Source§

type Ffi = EffectFfi

Ffi is an enum with variants corresponding to the Effect variants but instead of carrying a Request<Op> they carry the Op directly
Source§

fn serialize<T: FfiFormat>(self) -> (Self::Ffi, ResolveSerialized<T>)

Converts the Effect into its FFI counterpart and returns it alongside a deserializing version of the resolve callback for the request that the original Effect was carrying. Read more
Source§

impl From<Request<PluginCall>> for Effect

Source§

fn from(value: Request<PluginCall>) -> Self

Converts to this type from the input type.
Source§

impl From<Request<PluginNotify>> for Effect

Source§

fn from(value: Request<PluginNotify>) -> Self

Converts to this type from the input type.
Source§

impl From<Request<RenderOperation>> for Effect

Source§

fn from(value: Request<RenderOperation>) -> Self

Converts to this type from the input type.
Source§

impl TryFrom<Effect> for Request<PluginCall>

Source§

type Error = Effect

The type returned in the event of a conversion error.
Source§

fn try_from(value: Effect) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Effect> for Request<PluginNotify>

Source§

type Error = Effect

The type returned in the event of a conversion error.
Source§

fn try_from(value: Effect) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Effect> for Request<RenderOperation>

Source§

type Error = Effect

The type returned in the event of a conversion error.
Source§

fn try_from(value: Effect) -> Result<Self, Self::Error>

Performs the conversion.
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.