pub enum UFrameWireError {
InvalidFrame(String),
UnsupportedPayloadEncoding(String),
SerializationError(String),
}Expand description
Error type used by whole-frame wire formats.
Variants§
InvalidFrame(String)
The encoded bytes do not contain a valid frame or violate native frame invariants.
UnsupportedPayloadEncoding(String)
The selected wire format cannot faithfully represent the frame payload encoding.
SerializationError(String)
The wire format encoder or decoder failed while converting bytes.
Implementations§
Source§impl UFrameWireError
impl UFrameWireError
Sourcepub fn invalid_frame(message: impl Into<String>) -> Self
pub fn invalid_frame(message: impl Into<String>) -> Self
Creates an UFrameWireError::InvalidFrame value.
Sourcepub fn unsupported_payload_encoding(message: impl Into<String>) -> Self
pub fn unsupported_payload_encoding(message: impl Into<String>) -> Self
Creates an UFrameWireError::UnsupportedPayloadEncoding value.
Sourcepub fn serialization_error(message: impl Into<String>) -> Self
pub fn serialization_error(message: impl Into<String>) -> Self
Creates an UFrameWireError::SerializationError value.
Trait Implementations§
Source§impl Clone for UFrameWireError
impl Clone for UFrameWireError
Source§fn clone(&self) -> UFrameWireError
fn clone(&self) -> UFrameWireError
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 UFrameWireError
impl Debug for UFrameWireError
Source§impl Display for UFrameWireError
impl Display for UFrameWireError
Source§impl Error for UFrameWireError
impl Error for UFrameWireError
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<SerializationError> for UFrameWireError
impl From<SerializationError> for UFrameWireError
Source§fn from(value: SerializationError) -> Self
fn from(value: SerializationError) -> 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 PartialEq for UFrameWireError
impl PartialEq for UFrameWireError
impl Eq for UFrameWireError
impl StructuralPartialEq for UFrameWireError
Auto Trait Implementations§
impl Freeze for UFrameWireError
impl RefUnwindSafe for UFrameWireError
impl Send for UFrameWireError
impl Sync for UFrameWireError
impl Unpin for UFrameWireError
impl UnwindSafe for UFrameWireError
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.