#[non_exhaustive]pub enum UFrameMetadataError {
EmptyPayloadEncoding,
EmptyCustomEncodingId,
EmptyCustomEncodingContentType,
InvalidCustomEncodingContentType(String),
UnspecifiedPayloadFormat,
PayloadWithoutEncoding,
EncodingWithoutPayload,
EncodingNotRepresentable {
encoding: String,
},
RegisteredPayloadEncodingAlias {
literal_id: String,
registered: String,
},
FieldNotRepresentable {
field: &'static str,
reason: String,
},
InvalidMetadata(String),
MessageBuildError(String),
}Expand description
Errors returned by native frame metadata operations and projections.
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.
EmptyPayloadEncoding
A payload encoding was constructed without any identity component.
EmptyCustomEncodingId
A payload encoding literal id is empty.
EmptyCustomEncodingContentType
A payload encoding content type is empty.
InvalidCustomEncodingContentType(String)
A payload encoding content type is not a valid media type.
UnspecifiedPayloadFormat
UPayloadFormat::Unspecified is not a concrete payload encoding.
PayloadWithoutEncoding
Payload bytes require a payload encoding.
EncodingWithoutPayload
A payload encoding requires payload bytes.
EncodingNotRepresentable
A native payload encoding cannot be represented by legacy types.
RegisteredPayloadEncodingAlias
An open identity used a literal reserved for a registered legacy row.
Fields
FieldNotRepresentable
A semantic field cannot be represented by legacy types.
Fields
InvalidMetadata(String)
The metadata violates the validity rules for its frame message kind.
MessageBuildError(String)
Building a UMessage from projected metadata failed.
Trait Implementations§
Source§impl Clone for UFrameMetadataError
impl Clone for UFrameMetadataError
Source§fn clone(&self) -> UFrameMetadataError
fn clone(&self) -> UFrameMetadataError
Returns a copy of the value. Read more
1.0.0 · 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 UFrameMetadataError
impl Debug for UFrameMetadataError
Source§impl Display for UFrameMetadataError
impl Display for UFrameMetadataError
Source§impl Error for UFrameMetadataError
impl Error for UFrameMetadataError
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<UFrameMetadataError> for UFrameAbiError
impl From<UFrameMetadataError> for UFrameAbiError
Source§fn from(value: UFrameMetadataError) -> Self
fn from(value: UFrameMetadataError) -> Self
Converts to this type from the input type.
Source§impl From<UFrameMetadataError> for UFrameFieldsError
impl From<UFrameMetadataError> for UFrameFieldsError
Source§fn from(value: UFrameMetadataError) -> Self
fn from(value: UFrameMetadataError) -> Self
Converts to this type from the input type.
Source§impl From<UFrameMetadataError> for UFrameWireError
impl From<UFrameMetadataError> for UFrameWireError
Source§fn from(value: UFrameMetadataError) -> Self
fn from(value: UFrameMetadataError) -> Self
Converts to this type from the input type.
Source§impl From<UFrameMetadataError> for UWireMetadataError
impl From<UFrameMetadataError> for UWireMetadataError
Source§fn from(value: UFrameMetadataError) -> Self
fn from(value: UFrameMetadataError) -> 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.
Source§impl PartialEq for UFrameMetadataError
impl PartialEq for UFrameMetadataError
impl Eq for UFrameMetadataError
impl StructuralPartialEq for UFrameMetadataError
Auto Trait Implementations§
impl Freeze for UFrameMetadataError
impl RefUnwindSafe for UFrameMetadataError
impl Send for UFrameMetadataError
impl Sync for UFrameMetadataError
impl Unpin for UFrameMetadataError
impl UnwindSafe for UFrameMetadataError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.