pub enum UMessageError {
AttributesValidationError(UAttributesError),
DataSerializationError(SerializationError),
PayloadError(String),
}Expand description
Errors produced when building or converting a UMessage.
Variants§
AttributesValidationError(UAttributesError)
The message attributes failed validation.
DataSerializationError(SerializationError)
The payload could not be (de)serialized.
PayloadError(String)
The payload is inconsistent with the message (wrong format or presence).
Trait Implementations§
Source§impl Debug for UMessageError
impl Debug for UMessageError
Source§impl Display for UMessageError
impl Display for UMessageError
Source§impl Error for UMessageError
impl Error for UMessageError
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 From<&str> for UMessageError
impl From<&str> for UMessageError
Source§impl From<Error> for UMessageError
impl From<Error> for UMessageError
Source§impl From<SerializationError> for UMessageError
impl From<SerializationError> for UMessageError
Source§fn from(value: SerializationError) -> Self
fn from(value: SerializationError) -> Self
Converts to this type from the input type.
Source§impl From<String> for UMessageError
impl From<String> for UMessageError
Source§impl From<UAttributesError> for UMessageError
impl From<UAttributesError> for UMessageError
Source§fn from(value: UAttributesError) -> Self
fn from(value: UAttributesError) -> Self
Converts to this type from the input type.
Source§impl From<UMessageError> for UFrameMetadataError
impl From<UMessageError> for UFrameMetadataError
Source§fn from(value: UMessageError) -> Self
fn from(value: UMessageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UMessageError
impl RefUnwindSafe for UMessageError
impl Send for UMessageError
impl Sync for UMessageError
impl Unpin for UMessageError
impl UnwindSafe for UMessageError
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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<TCore> UWithNativePrefixWire for TCore
impl<TCore> UWithNativePrefixWire for TCore
Source§fn into_native_prefix_wire_transport<W>(
self,
wire: W,
) -> UWireTransport<TCore, W, NativePrefixFrameMetadataCodec>where
W: UWire,
fn into_native_prefix_wire_transport<W>(
self,
wire: W,
) -> UWireTransport<TCore, W, NativePrefixFrameMetadataCodec>where
W: UWire,
Wraps this core with an external or custom selected wire using canonical metadata.
Source§fn into_protobuf_transport(
self,
) -> UWireTransport<TCore, ProtobufWire, NativePrefixFrameMetadataCodec>
fn into_protobuf_transport( self, ) -> UWireTransport<TCore, ProtobufWire, NativePrefixFrameMetadataCodec>
Wraps this core with the Protocol Buffers selected-wire profile.
Source§fn into_stable_container_transport(
self,
) -> UWireTransport<TCore, StableContainerWireFormat, NativePrefixFrameMetadataCodec>
fn into_stable_container_transport( self, ) -> UWireTransport<TCore, StableContainerWireFormat, NativePrefixFrameMetadataCodec>
Wraps this core with the stable-container selected-wire profile.