pub struct GenChildSpec<B, A, M, X> { /* private fields */ }Implementations§
Source§impl<B, A, M, X> GenChildSpec<B, A, M, X>
impl<B, A, M, X> GenChildSpec<B, A, M, X>
Source§impl<A, M, X> GenChildSpec<(), A, M, X>
impl<A, M, X> GenChildSpec<(), A, M, X>
pub fn behaviour<B>(self, behaviour: B) -> GenChildSpec<B, A, M, X>
Source§impl<B, OldA, OldM, X> GenChildSpec<B, OldA, OldM, X>
impl<B, OldA, OldM, X> GenChildSpec<B, OldA, OldM, X>
pub fn args_clone<A, M>(self, args: A) -> GenChildSpec<B, ArgsClone<A>, M, X>
pub fn args_unique<A, M>(self, args: A) -> GenChildSpec<B, ArgsUnique<A>, M, X>where
B: for<'a> Actor<'a, Option<A>, M>,
ArgsUnique<A>: CreateArgs<Input = (), Output = Option<A>>,
pub fn args_call0<F, Out, M>( self, make_args: F, ) -> GenChildSpec<B, ArgsCallFn0<F, Out>, M, X>
pub fn args_call1<F, In, Out, M>(
self,
make_args: F,
) -> GenChildSpec<B, ArgsCallFn1<F, In, Out>, M, X>where
B: for<'a> Actor<'a, Out, M>,
ArgsCallFn1<F, In, Out>: CreateArgs<Input = In, Output = Out>,
Source§impl<B, A, M, X> GenChildSpec<B, A, M, X>
impl<B, A, M, X> GenChildSpec<B, A, M, X>
Source§impl<ID, B, A, M> GenChildSpec<B, A, M, Ext<ID>>
impl<ID, B, A, M> GenChildSpec<B, A, M, Ext<ID>>
pub fn child_type(self, child_type: ChildType) -> Self
pub fn shutdown(self, shutdown: ShutdownSequence) -> Self
Source§impl<B, A, M> GenChildSpec<B, A, M, Ext>
impl<B, A, M> GenChildSpec<B, A, M, Ext>
pub fn with_shutdown_sequence(self, shutdown_sequence: ShutdownSequence) -> Self
pub fn shutdown_sequence(&self) -> &ShutdownSequence
Trait Implementations§
Source§impl<B, A, M, X> Clone for GenChildSpec<B, A, M, X>
impl<B, A, M, X> Clone for GenChildSpec<B, A, M, X>
Source§impl<B, A, M, X> CreateChild for GenChildSpec<B, A, M, X>
impl<B, A, M, X> CreateChild for GenChildSpec<B, A, M, X>
type Args = <A as CreateArgs>::Input
fn create_child( &mut self, system: &System, sup_id: ActorID, args: Self::Args, ) -> StaticBoxedFuture<Result<ActorID, StartChildError>>
Source§impl<B, A, M, X> Debug for GenChildSpec<B, A, M, X>where
A: Debug,
impl<B, A, M, X> Debug for GenChildSpec<B, A, M, X>where
A: Debug,
Source§impl<ID, B, A, M> From<GenChildSpec<B, A, M, Ext<ID>>> for Box<dyn FlatMixedChildSpec<ID>>where
MixedChildSpec<ID, B, A, M>: FlatMixedChildSpec<ID>,
impl<ID, B, A, M> From<GenChildSpec<B, A, M, Ext<ID>>> for Box<dyn FlatMixedChildSpec<ID>>where
MixedChildSpec<ID, B, A, M>: FlatMixedChildSpec<ID>,
Source§fn from(cs: MixedChildSpec<ID, B, A, M>) -> Self
fn from(cs: MixedChildSpec<ID, B, A, M>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<B, A, M, X> Freeze for GenChildSpec<B, A, M, X>
impl<B, A, M, X> RefUnwindSafe for GenChildSpec<B, A, M, X>
impl<B, A, M, X> Send for GenChildSpec<B, A, M, X>
impl<B, A, M, X> Sync for GenChildSpec<B, A, M, X>
impl<B, A, M, X> Unpin for GenChildSpec<B, A, M, X>
impl<B, A, M, X> UnwindSafe for GenChildSpec<B, A, M, X>
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