pub struct Supervisor { /* private fields */ }Implementations§
Source§impl Supervisor
impl Supervisor
pub fn new(root: impl AsRef<Path>) -> Self
pub const fn with_poll_interval(self, poll_interval: Duration) -> Self
pub const fn with_shutdown_grace(self, shutdown_grace: Duration) -> Self
pub const fn with_readiness_timeout(self, readiness_timeout: Duration) -> Self
pub async fn run_until<S>( &self, plan: &DevPlan, runtime_environment: &BTreeMap<String, String>, shutdown: S, events: UnboundedSender<DevEvent>, ) -> Result<(), SupervisorError>
Trait Implementations§
Source§impl Clone for Supervisor
impl Clone for Supervisor
Source§fn clone(&self) -> Supervisor
fn clone(&self) -> Supervisor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Supervisor
impl RefUnwindSafe for Supervisor
impl Send for Supervisor
impl Sync for Supervisor
impl Unpin for Supervisor
impl UnsafeUnpin for Supervisor
impl UnwindSafe for Supervisor
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