pub struct SupervisorBuilder<T: SupervisedTask> { /* private fields */ }
Implementations§
Source§impl<T: SupervisedTask> SupervisorBuilder<T>
impl<T: SupervisedTask> SupervisorBuilder<T>
pub fn with_task(self, task: T) -> Self
pub fn with_tasks<I>(self, tasks: I) -> Selfwhere
I: IntoIterator<Item = T>,
pub fn build(self) -> Supervisor<T>
Trait Implementations§
Source§impl<T: Debug + SupervisedTask> Debug for SupervisorBuilder<T>
impl<T: Debug + SupervisedTask> Debug for SupervisorBuilder<T>
Source§impl<T: Default + SupervisedTask> Default for SupervisorBuilder<T>
impl<T: Default + SupervisedTask> Default for SupervisorBuilder<T>
Source§fn default() -> SupervisorBuilder<T>
fn default() -> SupervisorBuilder<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for SupervisorBuilder<T>
impl<T> RefUnwindSafe for SupervisorBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for SupervisorBuilder<T>where
T: Send,
impl<T> Sync for SupervisorBuilder<T>where
T: Sync,
impl<T> Unpin for SupervisorBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for SupervisorBuilder<T>where
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