pub enum ProtoConversionError {
MissingMapping,
GammaMismatch {
expected: f64,
actual: f64,
},
NonZeroIndexOffset {
actual: f64,
},
UnsupportedInterpolation {
actual: i32,
},
NegativeBinCount {
index: i32,
count: f64,
},
NonIntegerBinCount {
index: i32,
count: f64,
},
NegativeZeroCount {
count: f64,
},
NonIntegerZeroCount {
count: f64,
},
}Expand description
Errors that can occur during protobuf conversion.
Variants§
MissingMapping
The protobuf message is missing the required mapping field.
GammaMismatch
The gamma value in the protobuf doesn’t match the expected gamma.
NonZeroIndexOffset
The index offset is non-zero, which isn’t supported by LogarithmicMapping.
UnsupportedInterpolation
The interpolation mode isn’t supported.
NegativeBinCount
A bin count value is negative, which is invalid.
NonIntegerBinCount
A bin count value isn’t a valid integer.
NegativeZeroCount
The zero count is negative.
NonIntegerZeroCount
The zero count isn’t a valid integer.
Trait Implementations§
Source§impl Clone for ProtoConversionError
impl Clone for ProtoConversionError
Source§fn clone(&self) -> ProtoConversionError
fn clone(&self) -> ProtoConversionError
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 ProtoConversionError
impl Debug for ProtoConversionError
Source§impl Display for ProtoConversionError
impl Display for ProtoConversionError
Source§impl Error for ProtoConversionError
impl Error for ProtoConversionError
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 PartialEq for ProtoConversionError
impl PartialEq for ProtoConversionError
Source§fn eq(&self, other: &ProtoConversionError) -> bool
fn eq(&self, other: &ProtoConversionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProtoConversionError
Auto Trait Implementations§
impl Freeze for ProtoConversionError
impl RefUnwindSafe for ProtoConversionError
impl Send for ProtoConversionError
impl Sync for ProtoConversionError
impl Unpin for ProtoConversionError
impl UnsafeUnpin for ProtoConversionError
impl UnwindSafe for ProtoConversionError
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<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