pub struct NotificationBuilder<Effect, Event, Task> { /* private fields */ }
Expand description
A builder of one-off notify command
Implementations§
Source§impl<Effect, Event, Task> NotificationBuilder<Effect, Event, Task>
impl<Effect, Event, Task> NotificationBuilder<Effect, Event, Task>
pub fn new<F>(make_task: F) -> Self
Sourcepub fn into_future(self, ctx: CommandContext<Effect, Event>) -> Task
pub fn into_future(self, ctx: CommandContext<Effect, Event>) -> Task
Convert the NotificationBuilder
into a future to use in an async context
Trait Implementations§
Source§impl<Effect, Event, Task> From<NotificationBuilder<Effect, Event, Task>> for Command<Effect, Event>
impl<Effect, Event, Task> From<NotificationBuilder<Effect, Event, Task>> for Command<Effect, Event>
Source§fn from(value: NotificationBuilder<Effect, Event, Task>) -> Self
fn from(value: NotificationBuilder<Effect, Event, Task>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Effect, Event, Task> Freeze for NotificationBuilder<Effect, Event, Task>
impl<Effect, Event, Task> !RefUnwindSafe for NotificationBuilder<Effect, Event, Task>
impl<Effect, Event, Task> Send for NotificationBuilder<Effect, Event, Task>
impl<Effect, Event, Task> !Sync for NotificationBuilder<Effect, Event, Task>
impl<Effect, Event, Task> Unpin for NotificationBuilder<Effect, Event, Task>
impl<Effect, Event, Task> !UnwindSafe for NotificationBuilder<Effect, Event, Task>
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