pub struct Emitter<'a, 'e, E, A> { /* private fields */ }Expand description
A child-side handle that fires one event kind.
Several emitters over the same sink can be alive at once, which is what
makes #[event] on_ok / #[event] on_cancel usable side by side. A is
the payload type and make is the enum variant constructor, so the child
writes on_ok.emit(()) instead of naming the generated event enum.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'e, E, A> Freeze for Emitter<'a, 'e, E, A>
impl<'a, 'e, E, A> !RefUnwindSafe for Emitter<'a, 'e, E, A>
impl<'a, 'e, E, A> !Send for Emitter<'a, 'e, E, A>
impl<'a, 'e, E, A> !Sync for Emitter<'a, 'e, E, A>
impl<'a, 'e, E, A> Unpin for Emitter<'a, 'e, E, A>
impl<'a, 'e, E, A> UnsafeUnpin for Emitter<'a, 'e, E, A>
impl<'a, 'e, E, A> !UnwindSafe for Emitter<'a, 'e, E, A>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more