pub struct PartitionOrderViolation {
pub attempted: SubgraphId,
pub max_held: SubgraphId,
}Expand description
Error returned when a same-thread partition acquire violates ascending order. Phase H+ STRICT variant (D115).
The ascending-order protocol prevents AB/BA deadlocks between threads. When this error surfaces, the caller should defer the operation to wave-end (when no partitions are held) and retry.
Fields§
§attempted: SubgraphIdThe partition the caller tried to acquire.
max_held: SubgraphIdThe highest-id partition currently held by this thread.
Trait Implementations§
Source§impl Clone for PartitionOrderViolation
impl Clone for PartitionOrderViolation
Source§fn clone(&self) -> PartitionOrderViolation
fn clone(&self) -> PartitionOrderViolation
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 moreSource§impl Debug for PartitionOrderViolation
impl Debug for PartitionOrderViolation
Source§impl Display for PartitionOrderViolation
impl Display for PartitionOrderViolation
Source§impl Error for PartitionOrderViolation
impl Error for PartitionOrderViolation
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PartitionOrderViolation> for SubscribeError
impl From<PartitionOrderViolation> for SubscribeError
Source§fn from(source: PartitionOrderViolation) -> Self
fn from(source: PartitionOrderViolation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PartitionOrderViolation
impl PartialEq for PartitionOrderViolation
Source§fn eq(&self, other: &PartitionOrderViolation) -> bool
fn eq(&self, other: &PartitionOrderViolation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PartitionOrderViolation
impl StructuralPartialEq for PartitionOrderViolation
Auto Trait Implementations§
impl Freeze for PartitionOrderViolation
impl RefUnwindSafe for PartitionOrderViolation
impl Send for PartitionOrderViolation
impl Sync for PartitionOrderViolation
impl Unpin for PartitionOrderViolation
impl UnsafeUnpin for PartitionOrderViolation
impl UnwindSafe for PartitionOrderViolation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.