Skip to main content

ErrorDetails

Struct ErrorDetails 

Source
pub struct ErrorDetails {
Show 27 fields pub commit_id: Option<CommitId>, pub committed_seq: Option<ChangeSeq>, pub committed_fingerprint: Option<String>, pub operation_index: Option<u32>, pub precondition_index: Option<u32>, pub fenced_writer_epoch: Option<WriterEpoch>, pub active_writer_epoch: Option<WriterEpoch>, pub active_writer: Option<WriterId>, pub active_acquired_at_ms: Option<u64>, pub max_writer_sessions: Option<usize>, pub inode_id: Option<InodeId>, pub expected_inode_id: Option<InodeId>, pub actual_inode_id: Option<InodeId>, pub expected_binding_generation: Option<BindingGeneration>, pub actual_binding_generation: Option<BindingGeneration>, pub expected_revision_no: Option<RevisionNo>, pub actual_revision_no: Option<RevisionNo>, pub expected_attributes_revision_no: Option<AttributeRevisionNo>, pub actual_attributes_revision_no: Option<AttributeRevisionNo>, pub expected_access_revision_no: Option<AccessRevisionNo>, pub actual_access_revision_no: Option<AccessRevisionNo>, pub after_seq: Option<ChangeSeq>, pub retention_floor_seq: Option<ChangeSeq>, pub expected_deletion_seq: Option<ChangeSeq>, pub actual_deletion_seq: Option<ChangeSeq>, pub expected_head_seq: Option<ChangeSeq>, pub actual_head_seq: Option<ChangeSeq>,
}
Expand description

Optional machine-readable identifiers and state for an ApiError.

Fields§

§commit_id: Option<CommitId>

Idempotency key of the commit the error concerns.

§committed_seq: Option<ChangeSeq>

The sequence where this commit ID already landed, when recorded by a durable receipt.

§committed_fingerprint: Option<String>

The fingerprint of the mutation that landed under commit_id, present with committed_seq.

§operation_index: Option<u32>

The index of the failed operation in the request.

§precondition_index: Option<u32>

Zero-based position of the failed request precondition.

§fenced_writer_epoch: Option<WriterEpoch>

Epoch the failing writer session held when it was displaced.

§active_writer_epoch: Option<WriterEpoch>

Epoch that currently owns the namespace.

§active_writer: Option<WriterId>

The writer ID recorded for the current epoch, when available.

§active_acquired_at_ms: Option<u64>

The Unix-millisecond time when the current writer acquired its epoch, when available.

§max_writer_sessions: Option<usize>

Maximum writer sessions admitted by the node.

§inode_id: Option<InodeId>

Inode the failed precondition or operation targeted.

§expected_inode_id: Option<InodeId>

The request expected the path to contain this inode.

§actual_inode_id: Option<InodeId>

The path actually contained this inode.

§expected_binding_generation: Option<BindingGeneration>

Opaque binding token supplied by the request.

§actual_binding_generation: Option<BindingGeneration>

Current binding token; absent for the root, which has no binding.

§expected_revision_no: Option<RevisionNo>

Revision the request expected to be current.

§actual_revision_no: Option<RevisionNo>

Revision that is actually current; absent when the inode has none.

§expected_attributes_revision_no: Option<AttributeRevisionNo>

Attribute revision the request expected to be current.

§actual_attributes_revision_no: Option<AttributeRevisionNo>

Attribute revision that is actually current for the inode.

§expected_access_revision_no: Option<AccessRevisionNo>

Access revision the request expected to be current.

§actual_access_revision_no: Option<AccessRevisionNo>

Access revision that is actually current for the inode.

§after_seq: Option<ChangeSeq>

Change-feed cursor the request asked to resume after.

§retention_floor_seq: Option<ChangeSeq>

Oldest sequence still promised for incremental replay.

§expected_deletion_seq: Option<ChangeSeq>

Deletion generation the undelete expected to be active.

§actual_deletion_seq: Option<ChangeSeq>

Deletion generation actually active for the inode.

§expected_head_seq: Option<ChangeSeq>

The head sequence required by the request.

§actual_head_seq: Option<ChangeSeq>

The actual namespace head sequence.

Trait Implementations§

Source§

impl Clone for ErrorDetails

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ErrorDetails

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ErrorDetails

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ErrorDetails

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for ErrorDetails

Source§

impl PartialEq for ErrorDetails

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ErrorDetails

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ErrorDetails

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.