pub struct NamedGenServerStart<S, F>{ /* private fields */ }Expand description
Child-start helper for running a named GenServer under supervision.
This adapter wires together:
- Name lease acquisition (
spawn_named_gen_server) - Server task storage in runtime state
- Deterministic lease/name cleanup on region stop via a sync finalizer
Use this when building crate::supervision::ChildSpec entries for named
services.
Trait Implementations§
Source§impl<S, F> ChildStart for NamedGenServerStart<S, F>
impl<S, F> ChildStart for NamedGenServerStart<S, F>
Source§fn start(
&mut self,
scope: &Scope<'static, FailFast>,
state: &mut RuntimeState,
cx: &Cx,
) -> Result<TaskId, SpawnError>
fn start( &mut self, scope: &Scope<'static, FailFast>, state: &mut RuntimeState, cx: &Cx, ) -> Result<TaskId, SpawnError>
Start (or restart) the child inside
scope.region.Auto Trait Implementations§
impl<S, F> Freeze for NamedGenServerStart<S, F>where
F: Freeze,
impl<S, F> !RefUnwindSafe for NamedGenServerStart<S, F>
impl<S, F> Send for NamedGenServerStart<S, F>
impl<S, F> Sync for NamedGenServerStart<S, F>where
F: Sync,
impl<S, F> Unpin for NamedGenServerStart<S, F>where
F: Unpin,
impl<S, F> UnsafeUnpin for NamedGenServerStart<S, F>where
F: UnsafeUnpin,
impl<S, F> !UnwindSafe for NamedGenServerStart<S, F>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).