#[non_exhaustive]pub enum UAttributesError {
ValidationError(String),
ParsingError(String),
}Expand description
Errors produced when building or validating UAttributes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ValidationError(String)
The attributes violate a validation rule for their message type.
ParsingError(String)
The attributes could not be parsed from their serialized form.
Implementations§
Source§impl UAttributesError
impl UAttributesError
Sourcepub fn validation_error<T>(message: T) -> UAttributesError
pub fn validation_error<T>(message: T) -> UAttributesError
Creates a validation error with the given message.
Sourcepub fn parsing_error<T>(message: T) -> UAttributesError
pub fn parsing_error<T>(message: T) -> UAttributesError
Creates a parsing error with the given message.
Trait Implementations§
Source§impl Debug for UAttributesError
impl Debug for UAttributesError
Source§impl Display for UAttributesError
impl Display for UAttributesError
Source§impl Error for UAttributesError
impl Error for UAttributesError
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<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.
Auto Trait Implementations§
impl Freeze for UAttributesError
impl RefUnwindSafe for UAttributesError
impl Send for UAttributesError
impl Sync for UAttributesError
impl Unpin for UAttributesError
impl UnwindSafe for UAttributesError
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.