pub struct GraphSpec {
pub name: Option<Ident>,
pub observe_writes: Option<(observe, Expr)>,
pub observe_reads: Option<(observe, Expr)>,
pub default_executor: Option<Ident>,
pub items: Vec<Item>,
}Expand description
The parsed contents of a supervisor_graph! or supervisor_fragment! body.
Fields§
§name: Option<Ident>The optional name: identifier.
observe_writes: Option<(observe, Expr)>The default observe writes: accessor expression.
observe_reads: Option<(observe, Expr)>The default observe reads: accessor expression.
default_executor: Option<Ident>The default executor NAME; declaration, if any. Already applied to
items by the parser (see apply_default_executor).
items: Vec<Item>The nodes, pools, and executors declared in the graph.
Trait Implementations§
Auto Trait Implementations§
impl !Send for GraphSpec
impl !Sync for GraphSpec
impl Freeze for GraphSpec
impl RefUnwindSafe for GraphSpec
impl Unpin for GraphSpec
impl UnsafeUnpin for GraphSpec
impl UnwindSafe for GraphSpec
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