pub struct Leader<K, T, E, S = RandomState> { /* private fields */ }Expand description
Owner of the single computation for a key.
Dropping a leader before calling complete publishes
Outcome::Canceled to subscribers and removes the key from the group.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<K, T, E, S> Freeze for Leader<K, T, E, S>
impl<K, T, E, S> RefUnwindSafe for Leader<K, T, E, S>
impl<K, T, E, S> Send for Leader<K, T, E, S>
impl<K, T, E, S> Sync for Leader<K, T, E, S>
impl<K, T, E, S> Unpin for Leader<K, T, E, S>
impl<K, T, E, S> UnsafeUnpin for Leader<K, T, E, S>
impl<K, T, E, S> UnwindSafe for Leader<K, T, E, S>
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