pub enum TransportRejectionReason {
FrameTooLarge {
complete_frame_bytes: u64,
max_frame_bytes: u64,
},
DecodeFailed {
decode_class: DecodeClass,
},
UnsupportedVersion {
presented_version: ProtocolVersion,
supported_version: ProtocolVersion,
},
AuthenticationFailed,
ParticipantCapabilityRequired,
}Expand description
Closed transport-rejection reason union.
Variants§
FrameTooLarge
Declared complete frame exceeds the current allocation bound.
Fields
DecodeFailed
Structural participant decoding failed.
Fields
§
decode_class: DecodeClassExact structural failure class.
UnsupportedVersion
Concrete participant version is unsupported.
Fields
§
presented_version: ProtocolVersionVersion found in the inner prefix.
§
supported_version: ProtocolVersionStored or server-supported expected version.
AuthenticationFailed
Connection authentication failed.
ParticipantCapabilityRequired
The connection did not negotiate participant capability.
The serialized required_capability value is always exactly
"participant-v1".
Trait Implementations§
Source§impl Clone for TransportRejectionReason
impl Clone for TransportRejectionReason
Source§fn clone(&self) -> TransportRejectionReason
fn clone(&self) -> TransportRejectionReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TransportRejectionReason
impl Debug for TransportRejectionReason
impl Eq for TransportRejectionReason
Source§impl PartialEq for TransportRejectionReason
impl PartialEq for TransportRejectionReason
impl StructuralPartialEq for TransportRejectionReason
Auto Trait Implementations§
impl Freeze for TransportRejectionReason
impl RefUnwindSafe for TransportRejectionReason
impl Send for TransportRejectionReason
impl Sync for TransportRejectionReason
impl Unpin for TransportRejectionReason
impl UnsafeUnpin for TransportRejectionReason
impl UnwindSafe for TransportRejectionReason
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