pub enum TransportRejection {
SendError,
DrainRejected,
DecodeError,
RouteFailed,
MissingHeaders,
MissingType,
InvalidType,
InvalidHeaderLength,
TruncatedFrame,
DrainReplyBuildFailed,
}Expand description
Reason a transport rejected or dropped a frame.
Variants§
SendError
Send operation failed.
DrainRejected
Message rejected during graceful drain.
DecodeError
Frame decode or preamble parse failed.
RouteFailed
Failed to route frame to adapter channel.
MissingHeaders
NATS message missing required headers.
MissingType
Velo-Type header missing (NATS).
InvalidType
Invalid Velo-Type value (NATS).
InvalidHeaderLength
Invalid Velo-HLen header (NATS).
TruncatedFrame
Frame shorter than declared header length (NATS).
DrainReplyBuildFailed
Failed to build ShuttingDown response (gRPC).
Implementations§
Trait Implementations§
Source§impl Clone for TransportRejection
impl Clone for TransportRejection
Source§fn clone(&self) -> TransportRejection
fn clone(&self) -> TransportRejection
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 moreimpl Copy for TransportRejection
Source§impl Debug for TransportRejection
impl Debug for TransportRejection
impl Eq for TransportRejection
Source§impl PartialEq for TransportRejection
impl PartialEq for TransportRejection
impl StructuralPartialEq for TransportRejection
Auto Trait Implementations§
impl Freeze for TransportRejection
impl RefUnwindSafe for TransportRejection
impl Send for TransportRejection
impl Sync for TransportRejection
impl Unpin for TransportRejection
impl UnsafeUnpin for TransportRejection
impl UnwindSafe for TransportRejection
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