pub struct ChildSpec<F, T> {
pub launcher: F,
pub child_type: T,
pub init_type: InitType,
pub stop_timeout: Duration,
pub announce_parent: bool,
}Fields§
§launcher: F§child_type: T§init_type: InitType§stop_timeout: Duration§announce_parent: boolImplementations§
Source§impl<F, T> ChildSpec<F, T>
impl<F, T> ChildSpec<F, T>
pub fn with_child_type<T1>(self, child_type: T1) -> ChildSpec<F, T1>
pub fn with_init_type(self, init_type: InitType) -> Self
pub fn with_stop_timeout(self, stop_timeout: Duration) -> Self
pub fn with_announce_parent(self, announce_parent: bool) -> Self
pub fn announce_parent(self) -> Self
pub fn map_launcher<F1, M>(self, map: M) -> ChildSpec<F1, T>where
M: FnOnce(F) -> F1,
Trait Implementations§
Auto Trait Implementations§
impl<F, T> Freeze for ChildSpec<F, T>
impl<F, T> RefUnwindSafe for ChildSpec<F, T>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<F, T> Send for ChildSpec<F, T>
impl<F, T> Sync for ChildSpec<F, T>
impl<F, T> Unpin for ChildSpec<F, T>
impl<F, T> UnwindSafe for ChildSpec<F, T>where
F: UnwindSafe,
T: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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