Struct actix::prelude::ArbiterHandle [−][src]
A handle for sending spawn and stop messages to an Arbiter.
Implementations
impl ArbiterHandle
[src]
pub fn spawn<Fut>(&self, future: Fut) -> bool where
Fut: Future<Output = ()> + Send + 'static,
[src]
Fut: Future<Output = ()> + Send + 'static,
Send a future to the Arbiter’s thread and spawn it.
If you require a result, include a response channel in the future.
Returns true if future was sent successfully and false if the Arbiter has died.
pub fn spawn_fn<F>(&self, f: F) -> bool where
F: FnOnce() + Send + 'static,
[src]
F: FnOnce() + Send + 'static,
Send a function to the Arbiter’s thread and execute it.
Any result from the function is discarded. If you require a result, include a response channel in the function.
Returns true if function was sent successfully and false if the Arbiter has died.
pub fn stop(&self) -> bool
[src]
Trait Implementations
impl Clone for ArbiterHandle
[src]
pub fn clone(&self) -> ArbiterHandle
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ArbiterHandle
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ArbiterHandle
impl Send for ArbiterHandle
impl Sync for ArbiterHandle
impl Unpin for ArbiterHandle
impl !UnwindSafe for ArbiterHandle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,