pub struct RelayCancellation { /* private fields */ }Expand description
A clonable signal used by a terminal control loop to interrupt the active relay turn without borrowing the relay while its adapter is being polled.
Implementations§
Source§impl RelayCancellation
impl RelayCancellation
pub fn request(&self)
Sourcepub fn request_if_active(&self, slot: RosterSlot) -> bool
pub fn request_if_active(&self, slot: RosterSlot) -> bool
Cancel only when slot is the turn currently borrowing the relay.
Reloading an idle or previously failed peer is deferred to the turn
boundary without interrupting a healthy collaborator.
Trait Implementations§
Source§impl Clone for RelayCancellation
impl Clone for RelayCancellation
Source§fn clone(&self) -> RelayCancellation
fn clone(&self) -> RelayCancellation
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 RelayCancellation
impl RefUnwindSafe for RelayCancellation
impl Send for RelayCancellation
impl Sync for RelayCancellation
impl Unpin for RelayCancellation
impl UnsafeUnpin for RelayCancellation
impl UnwindSafe for RelayCancellation
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