pub struct CommonForesterBuilder { /* private fields */ }Implementations§
Source§impl CommonForesterBuilder
impl CommonForesterBuilder
pub fn new() -> Self
Sourcepub fn register_daemon(&mut self, daemon: Daemon)
pub fn register_daemon(&mut self, daemon: Daemon)
Add a daemon
Sourcepub fn register_named_daemon(&mut self, name: DaemonName, daemon: Daemon)
pub fn register_named_daemon(&mut self, name: DaemonName, daemon: Daemon)
Add a daemon with a name The name is used to stop the daemon
Sourcepub fn register_sync_action<A>(&mut self, name: &str, action: A)where
A: Impl + 'static,
pub fn register_sync_action<A>(&mut self, name: &str, action: A)where
A: Impl + 'static,
Add an sync action according to the name.
Sourcepub fn register_async_action<A>(&mut self, name: &str, action: A)where
A: ImplAsync + 'static,
pub fn register_async_action<A>(&mut self, name: &str, action: A)where
A: ImplAsync + 'static,
Add an sync action according to the name.
Sourcepub fn register_remote_action<A>(&mut self, name: &str, action: A)where
A: ImplRemote + 'static,
pub fn register_remote_action<A>(&mut self, name: &str, action: A)where
A: ImplRemote + 'static,
Add an action according to the name but with a promise the action remote.
Auto Trait Implementations§
impl !Freeze for CommonForesterBuilder
impl !RefUnwindSafe for CommonForesterBuilder
impl Send for CommonForesterBuilder
impl Sync for CommonForesterBuilder
impl Unpin for CommonForesterBuilder
impl !UnwindSafe for CommonForesterBuilder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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