pub struct SupSpec<ID, RS> {
pub restart_strategy: RS,
pub children: Vec<BoxedMixedChildSpec<ID>>,
}Fields§
§restart_strategy: RS§children: Vec<BoxedMixedChildSpec<ID>>Implementations§
source§impl<ID, RS> SupSpec<ID, RS>
impl<ID, RS> SupSpec<ID, RS>
pub fn new(restart_strategy: RS) -> Self
pub fn with_child<CS>(self, child_spec: CS) -> Selfwhere CS: Into<BoxedMixedChildSpec<ID>>,
Trait Implementations§
Auto Trait Implementations§
impl<ID, RS> !RefUnwindSafe for SupSpec<ID, RS>
impl<ID, RS> Send for SupSpec<ID, RS>where RS: Send,
impl<ID, RS> Sync for SupSpec<ID, RS>where RS: Sync,
impl<ID, RS> Unpin for SupSpec<ID, RS>where RS: Unpin,
impl<ID, RS> !UnwindSafe for SupSpec<ID, RS>
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