pub struct SupervisorDecl {
pub visibility: Visibility,
pub name: Ident,
pub strategy: SupervisorStrategy,
pub children: Vec<SupervisorChild>,
pub span: Span,
}Expand description
Supervisor tree declaration: supervisor MySup { strategy: one_for_one, ... }
Erlang/Elixir-inspired fault tolerance for concurrent programs.
Fields§
§visibility: Visibility§name: Ident§strategy: SupervisorStrategy§children: Vec<SupervisorChild>§span: SpanTrait Implementations§
Source§impl Clone for SupervisorDecl
impl Clone for SupervisorDecl
Source§fn clone(&self) -> SupervisorDecl
fn clone(&self) -> SupervisorDecl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SupervisorDecl
impl Debug for SupervisorDecl
Source§impl PartialEq for SupervisorDecl
impl PartialEq for SupervisorDecl
impl StructuralPartialEq for SupervisorDecl
Auto Trait Implementations§
impl Freeze for SupervisorDecl
impl RefUnwindSafe for SupervisorDecl
impl Send for SupervisorDecl
impl Sync for SupervisorDecl
impl Unpin for SupervisorDecl
impl UnwindSafe for SupervisorDecl
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