[−][src]Struct actix::sync::SyncArbiter
Sync arbiter
Methods
impl<A> SyncArbiter<A> where
A: Actor<Context = SyncContext<A>>,
[src]
impl<A> SyncArbiter<A> where
A: Actor<Context = SyncContext<A>>,
pub fn start<F>(threads: usize, factory: F) -> Addr<A> where | [src] |
Start new sync arbiter with specified number of worker threads. Returns address of the started actor.
Trait Implementations
impl<A> Actor for SyncArbiter<A> where
A: Actor<Context = SyncContext<A>>,
[src]
impl<A> Actor for SyncArbiter<A> where
A: Actor<Context = SyncContext<A>>,
type Context = Context<Self>
Actor execution context type
fn started(&mut self, ctx: &mut Self::Context) | [src] |
Called when an actor gets polled the first time.
fn stopping(&mut self, ctx: &mut Self::Context) -> Running | [src] |
Called after an actor is in Actor::Stopping
state. Read more
fn stopped(&mut self, ctx: &mut Self::Context) | [src] |
Called after an actor is stopped. Read more
fn start(self) -> Addr<Self> where | [src] |
Start a new asynchronous actor, returning its address. Read more
fn start_default() -> Addr<Self> where | [src] |
Construct and start a new asynchronous actor, returning its address. Read more
fn create<F>(f: F) -> Addr<Self> where | [src] |
Start a new asynchronous actor given a Context
. Read more
Auto Trait Implementations
impl<A> Send for SyncArbiter<A>
impl<A> Send for SyncArbiter<A>
impl<A> Sync for SyncArbiter<A>
impl<A> Sync for SyncArbiter<A>
Blanket Implementations
impl<F, A> WrapFuture for F where
A: Actor,
F: Future,
[src]
impl<F, A> WrapFuture for F where
A: Actor,
F: Future,
type Future = FutureWrap<F, A>
The future that this type can be converted into.
type Item = <F as Future>::Item
The item that the future may resolve with.
type Error = <F as Future>::Error
The error that the future may resolve with.
fn into_actor(Self, &A) -> <F as WrapFuture<A>>::Future | [src] |
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> Erased for T
impl<T> Erased for T
impl<F> IntoFuture for F where
F: Future,
[src]
impl<F> IntoFuture for F where
F: Future,
type Future = F
The future that this type can be converted into.
type Item = <F as Future>::Item
The item that the future may resolve with.
type Error = <F as Future>::Error
The error that the future may resolve with.
fn into_future(self) -> F | [src] |
impl<T> FutureExt for T where
T: Future + ?Sized,
[src]
impl<T> FutureExt for T where
T: Future + ?Sized,