pub enum PublicationError {
AuthorityMismatch {
volume_id: VolumeId,
expected: AuthorityId,
actual: AuthorityId,
},
VolumeMismatch {
expected: VolumeId,
actual: VolumeId,
},
Closure(ClosureError),
Objects(ObjectStoreError),
Authority(AuthorityStoreError),
Work(WorkError),
}Expand description
Fail-closed generation-publication errors.
Variants§
AuthorityMismatch
The request targeted an authority other than the volume’s canonical authority.
Fields
§
expected: AuthorityIdSole authority derived from the volume identity.
§
actual: AuthorityIdAuthority supplied by the caller.
VolumeMismatch
The authenticated generation belongs to another volume.
Fields
Closure(ClosureError)
Whole-generation authentication failed.
Objects(ObjectStoreError)
Staged immutable bodies could not be durably admitted before publication.
Authority(AuthorityStoreError)
Atomic authority evaluation failed.
Work(WorkError)
Exact work overflowed or exceeded the admitted request budget.
Trait Implementations§
Source§impl Debug for PublicationError
impl Debug for PublicationError
Source§impl Display for PublicationError
impl Display for PublicationError
Source§impl Error for PublicationError
impl Error for PublicationError
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<AuthorityStoreError> for PublicationError
impl From<AuthorityStoreError> for PublicationError
Source§fn from(source: AuthorityStoreError) -> Self
fn from(source: AuthorityStoreError) -> Self
Converts to this type from the input type.
Source§impl From<ClosureError> for PublicationError
impl From<ClosureError> for PublicationError
Source§fn from(source: ClosureError) -> Self
fn from(source: ClosureError) -> Self
Converts to this type from the input type.
Source§impl From<ObjectStoreError> for PublicationError
impl From<ObjectStoreError> for PublicationError
Source§fn from(source: ObjectStoreError) -> Self
fn from(source: ObjectStoreError) -> Self
Converts to this type from the input type.
Source§impl From<PublicationError> for FsError
impl From<PublicationError> for FsError
Source§fn from(source: PublicationError) -> Self
fn from(source: PublicationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PublicationError
impl !UnwindSafe for PublicationError
impl Freeze for PublicationError
impl Send for PublicationError
impl Sync for PublicationError
impl Unpin for PublicationError
impl UnsafeUnpin for PublicationError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request