Skip to main content

EventLayer

Enum EventLayer 

Source
pub enum EventLayer<Owned, Inner> {
    Owned(Owned),
    Inner(Inner),
}
Expand description

One statically owned input lane composed in front of an inner event algebra.

EventLayer is a concrete coproduct, not an erased envelope. Owned is the lane introduced by the current behavior template and Inner preserves the complete event algebra of the wrapped behavior.

Variants§

§

Owned(Owned)

§

Inner(Inner)

Trait Implementations§

Source§

impl<Owned: Clone, Inner: Clone> Clone for EventLayer<Owned, Inner>

Source§

fn clone(&self) -> EventLayer<Owned, Inner>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Owned, Inner> ComposedEvent for EventLayer<Owned, Inner>
where Inner: UserEvent,

Source§

type Inner = Inner

Source§

fn from_inner(event: Inner) -> Self

Source§

impl<Owned: Debug, Inner: Debug> Debug for EventLayer<Owned, Inner>

Source§

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

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

impl<Owned, Inner, Source, Input> EventIngress<Source, Input> for EventLayer<Owned, Inner>
where Inner: EventIngress<Source, Input>,

Source§

fn ingress(input: Input) -> Self

Construct the event selected for Source and Input.
Source§

impl<Owned, Inner, Input, Path> InjectEvent<Input, Inside<Path>> for EventLayer<Owned, Inner>
where Inner: InjectEvent<Input, Path>,

Source§

fn inject_at(input: Input) -> Self

Source§

impl<Owned, Inner> InjectEvent<Owned, Here> for EventLayer<Owned, Inner>

Source§

fn inject_at(input: Owned) -> Self

Source§

impl<Owned: PartialEq, Inner: PartialEq> PartialEq for EventLayer<Owned, Inner>

Source§

fn eq(&self, other: &EventLayer<Owned, Inner>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<Owned, Inner, Input, Path> RecoverEvent<Input, Inside<Path>> for EventLayer<Owned, Inner>
where Inner: RecoverEvent<Input, Path>,

Source§

fn recover(event: Self) -> Result<Input, Self>

Recover Input when this event belongs to Path. Read more
Source§

impl<Owned, Inner> RecoverEvent<Owned, Here> for EventLayer<Owned, Inner>

Source§

fn recover(event: Self) -> Result<Owned, Self>

Recover Input when this event belongs to Path. Read more
Source§

impl<Owned, Inner> UserEvent for EventLayer<Owned, Inner>
where Inner: UserEvent,

Source§

type Addr = <Inner as UserEvent>::Addr

Source§

type Message = <Inner as UserEvent>::Message

Source§

fn user(from: Self::Addr, message: Self::Message) -> Self

Source§

fn into_user(self) -> Result<User<Self::Addr, Self::Message>, Self>

Errors Read more
Source§

impl<Owned: Eq, Inner: Eq> Eq for EventLayer<Owned, Inner>

Source§

impl<Owned, Inner> StructuralPartialEq for EventLayer<Owned, Inner>

Auto Trait Implementations§

§

impl<Owned, Inner> Freeze for EventLayer<Owned, Inner>
where Owned: Freeze, Inner: Freeze,

§

impl<Owned, Inner> RefUnwindSafe for EventLayer<Owned, Inner>
where Owned: RefUnwindSafe, Inner: RefUnwindSafe,

§

impl<Owned, Inner> Send for EventLayer<Owned, Inner>
where Owned: Send, Inner: Send,

§

impl<Owned, Inner> Sync for EventLayer<Owned, Inner>
where Owned: Sync, Inner: Sync,

§

impl<Owned, Inner> Unpin for EventLayer<Owned, Inner>
where Owned: Unpin, Inner: Unpin,

§

impl<Owned, Inner> UnsafeUnpin for EventLayer<Owned, Inner>
where Owned: UnsafeUnpin, Inner: UnsafeUnpin,

§

impl<Owned, Inner> UnwindSafe for EventLayer<Owned, Inner>
where Owned: UnwindSafe, Inner: UnwindSafe,

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.