Enum re_protos::TypeConversionError
source · pub enum TypeConversionError {
MissingField {
package_name: &'static str,
type_name: &'static str,
field_name: &'static str,
},
InvalidField {
package_name: &'static str,
type_name: &'static str,
field_name: &'static str,
reason: String,
},
DecodeError(DecodeError),
EncodeError(EncodeError),
UnknownEnumValue(UnknownEnumValue),
}
Variants§
MissingField
InvalidField
DecodeError(DecodeError)
EncodeError(EncodeError)
UnknownEnumValue(UnknownEnumValue)
Implementations§
source§impl TypeConversionError
impl TypeConversionError
pub fn missing_field<T: Name>(field_name: &'static str) -> Self
pub fn invalid_field<T: Name>( field_name: &'static str, reason: &impl ToString, ) -> Self
Trait Implementations§
source§impl Debug for TypeConversionError
impl Debug for TypeConversionError
source§impl Display for TypeConversionError
impl Display for TypeConversionError
source§impl Error for TypeConversionError
impl Error for TypeConversionError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<DecodeError> for TypeConversionError
impl From<DecodeError> for TypeConversionError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<EncodeError> for TypeConversionError
impl From<EncodeError> for TypeConversionError
source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
source§impl From<UnknownEnumValue> for TypeConversionError
impl From<UnknownEnumValue> for TypeConversionError
source§fn from(source: UnknownEnumValue) -> Self
fn from(source: UnknownEnumValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TypeConversionError
impl RefUnwindSafe for TypeConversionError
impl Send for TypeConversionError
impl Sync for TypeConversionError
impl Unpin for TypeConversionError
impl UnwindSafe for TypeConversionError
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>
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