Enum PayloadSendError
#[non_exhaustive]pub enum PayloadSendError {
PayloadTooLarge {
size: u64,
limit: u64,
},
UnsupportedPeer,
Backpressure,
StaleToken,
WrongDirection,
WrongPhase {
phase: ConnectionPhase,
},
NotConnected,
}Expand description
Why a typed payload was not accepted for sending. Nothing was sent.
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.
PayloadTooLarge
The encoded payload exceeds its codec or frame limit.
UnsupportedPeer
The peer did not negotiate this optional payload.
Backpressure
This tick’s message or byte budget for the peer is used up.
StaleToken
The token is not of this load session: forged, or kept from an earlier one.
WrongDirection
The token’s payload travels the other way.
WrongPhase
The payload is not declared for the connection’s phase.
Fields
§
phase: ConnectionPhaseThe phase the connection is in.
NotConnected
There is no connection to send on.
Trait Implementations§
§impl Clone for PayloadSendError
impl Clone for PayloadSendError
§fn clone(&self) -> PayloadSendError
fn clone(&self) -> PayloadSendError
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 PayloadSendError
§impl Debug for PayloadSendError
impl Debug for PayloadSendError
impl Eq for PayloadSendError
§impl Hash for PayloadSendError
impl Hash for PayloadSendError
§impl PartialEq for PayloadSendError
impl PartialEq for PayloadSendError
impl StructuralPartialEq for PayloadSendError
Auto Trait Implementations§
impl Freeze for PayloadSendError
impl RefUnwindSafe for PayloadSendError
impl Send for PayloadSendError
impl Sync for PayloadSendError
impl Unpin for PayloadSendError
impl UnsafeUnpin for PayloadSendError
impl UnwindSafe for PayloadSendError
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