pub enum ProtoError {
MissingField(&'static str),
Term(StorageError),
TrailingTermBytes(usize),
StrHashLength(usize),
UnspecifiedEnum(&'static str),
UnknownEnum(&'static str, i32),
EmptyTerm(&'static str),
GraphComparisonSlot,
SlotMask(u32),
}Expand description
Failure decoding a waratah.v1 message into storage-layer types.
Variants§
MissingField(&'static str)
A message-typed field required by the RPC was absent.
Term(StorageError)
Encoded term bytes could not be decoded.
TrailingTermBytes(usize)
A term slot carried more bytes than one encoded term.
StrHashLength(usize)
A StrHash field was not exactly 16 big-endian bytes.
UnspecifiedEnum(&'static str)
An enum field the RPC requires was left at its UNSPECIFIED default.
UnknownEnum(&'static str, i32)
An enum field carries a value this build does not recognise.
EmptyTerm(&'static str)
A field that must carry an encoded term was left empty.
GraphComparisonSlot
A slot comparison named the graph slot, which the wire cannot carry.
SlotMask(u32)
An omitted_slots bitmask named a slot outside subject..graph.
Trait Implementations§
Source§impl Debug for ProtoError
impl Debug for ProtoError
Source§impl Display for ProtoError
impl Display for ProtoError
Source§impl Error for ProtoError
impl Error for ProtoError
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<ProtoError> for Status
impl From<ProtoError> for Status
Source§fn from(error: ProtoError) -> Self
fn from(error: ProtoError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for ProtoError
impl From<StorageError> for ProtoError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProtoError
impl RefUnwindSafe for ProtoError
impl Send for ProtoError
impl Sync for ProtoError
impl Unpin for ProtoError
impl UnsafeUnpin for ProtoError
impl UnwindSafe for ProtoError
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].