pub enum Role {
ColdStart {
inherited: InheritedListeners,
},
Successor(Successor),
}Variants§
ColdStart
No HANDOFF_ROLE env var was set. This is a fresh boot — either a
supervisor’s first spawn (in which case inherited may carry listeners)
or an unsupervised local-dev run (in which case inherited is empty
and the primitive binds its own listeners).
Fields
§
inherited: InheritedListenersSuccessor(Successor)
Spawned as a successor mid-handoff. Use the embedded Successor to
drive the protocol (handshake, wait_for_begin, take_listener, announce_ready).
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
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