pub struct HandshookSuccessor { /* private fields */ }Expand description
Hello/HelloAck exchanged with the supervisor; waiting for Begin.
Created by Successor::handshake.
Implementations§
Source§impl HandshookSuccessor
impl HandshookSuccessor
Sourcepub fn wait_for_begin(self) -> Result<BegunSuccessor>
pub fn wait_for_begin(self) -> Result<BegunSuccessor>
Block until the supervisor sends Begin. Consumes self and returns a
BegunSuccessor on success. Abort from the supervisor surfaces
as Error::Aborted; Heartbeat frames are skipped silently. A
Begin with a different handoff id than the one negotiated in
Successor::handshake returns Error::Protocol — that’s a
supervisor bug, not a recoverable condition.
Sourcepub fn listener_names(&self) -> Vec<String>
pub fn listener_names(&self) -> Vec<String>
Names of all inherited listeners. Diagnostic accessor.
Sourcepub fn handoff_id(&self) -> HandoffId
pub fn handoff_id(&self) -> HandoffId
The handoff id negotiated in Successor::handshake.
Auto Trait Implementations§
impl Freeze for HandshookSuccessor
impl RefUnwindSafe for HandshookSuccessor
impl Send for HandshookSuccessor
impl Sync for HandshookSuccessor
impl Unpin for HandshookSuccessor
impl UnsafeUnpin for HandshookSuccessor
impl UnwindSafe for HandshookSuccessor
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