Struct steady_state::Graph
source · pub struct Graph { /* private fields */ }Implementations§
source§impl Graph
impl Graph
pub fn actor_builder(&mut self) -> ActorBuilder
pub fn edge_simulator(&self, name: &'static str) -> EdgeSimulationDirector
pub fn stop(&mut self)
pub fn block_until_stopped(self, clean_shutdown_timeout: Duration)
sourcepub fn new<A: Any + Send + Sync>(args: A) -> Graph
pub fn new<A: Any + Send + Sync>(args: A) -> Graph
create a new graph for the application typically done in main
pub fn channel_builder(&mut self) -> ChannelBuilder
source§impl Graph
impl Graph
sourcepub fn new_test_monitor(&mut self, name: &'static str) -> SteadyContext
pub fn new_test_monitor(&mut self, name: &'static str) -> SteadyContext
needed for testing only, this monitor assumes we are running without a full graph and will not be used in production
Auto Trait Implementations§
impl Freeze for Graph
impl !RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl !UnwindSafe for Graph
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