pub enum FlightResult {
Leader(FlightLeader),
Follower(Arc<FlightState>),
}Expand description
Result of attempting to join a singleflight group.
Variants§
Leader(FlightLeader)
This thread is the leader — it should execute the query.
Follower(Arc<FlightState>)
Another thread is already executing this query — wait for the result.
Auto Trait Implementations§
impl Freeze for FlightResult
impl RefUnwindSafe for FlightResult
impl Send for FlightResult
impl Sync for FlightResult
impl Unpin for FlightResult
impl UnsafeUnpin for FlightResult
impl UnwindSafe for FlightResult
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