pub enum ReasonCode {
Show 58 variants
Success = 0,
GrantedQoS1 = 1,
GrantedQoS2 = 2,
DisconnectWithWillMessage = 4,
NoMatchingSubscribers = 16,
NoSubscriptionExisted = 17,
ContinueAuthentication = 24,
ReAuthenticate = 25,
UnspecifiedError = 128,
MalformedPacket = 129,
ProtocolError = 130,
ImplementationSpecificError = 131,
UnsupportedProtocolVersion = 132,
ClientIdentifierNotValid = 133,
BadUsernameOrPassword = 134,
NotAuthorized = 135,
ServerUnavailable = 136,
ServerBusy = 137,
Banned = 138,
ServerShuttingDown = 139,
BadAuthenticationMethod = 140,
KeepAliveTimeout = 141,
SessionTakenOver = 142,
TopicFilterInvalid = 143,
TopicNameInvalid = 144,
PacketIdentifierInUse = 145,
PacketIdentifierNotFound = 146,
ReceiveMaximumExceeded = 147,
TopicAliasInvalid = 148,
PacketTooLarge = 149,
MessageRateTooHigh = 150,
QuotaExceeded = 151,
AdministrativeAction = 152,
PayloadFormatInvalid = 153,
RetainNotSupported = 154,
QoSNotSupported = 155,
UseAnotherServer = 156,
ServerMoved = 157,
SharedSubscriptionsNotSupported = 158,
ConnectionRateExceeded = 159,
MaximumConnectTime = 160,
SubscriptionIdentifiersNotSupported = 161,
WildcardSubscriptionsNotSupported = 162,
MqoqNoFlowState = 179,
MqoqNotFlowOwner = 180,
MqoqStreamTypeError = 181,
MqoqBadFlowId = 182,
MqoqPersistentTopic = 183,
MqoqPersistentSubError = 184,
MqoqOptionalHeader = 185,
MqoqIncompletePacket = 186,
MqoqFlowOpenIdle = 187,
MqoqFlowCancelled = 188,
MqoqFlowPacketCancelled = 189,
MqoqFlowRefused = 190,
MqoqDiscardState = 191,
MqoqServerPushNotWelcome = 192,
MqoqRecoveryFailed = 193,
}Variants§
Success = 0
GrantedQoS1 = 1
GrantedQoS2 = 2
DisconnectWithWillMessage = 4
NoMatchingSubscribers = 16
NoSubscriptionExisted = 17
ContinueAuthentication = 24
ReAuthenticate = 25
UnspecifiedError = 128
MalformedPacket = 129
ProtocolError = 130
ImplementationSpecificError = 131
UnsupportedProtocolVersion = 132
ClientIdentifierNotValid = 133
BadUsernameOrPassword = 134
NotAuthorized = 135
ServerBusy = 137
Banned = 138
ServerShuttingDown = 139
BadAuthenticationMethod = 140
KeepAliveTimeout = 141
SessionTakenOver = 142
TopicFilterInvalid = 143
TopicNameInvalid = 144
PacketIdentifierInUse = 145
PacketIdentifierNotFound = 146
ReceiveMaximumExceeded = 147
TopicAliasInvalid = 148
PacketTooLarge = 149
MessageRateTooHigh = 150
QuotaExceeded = 151
AdministrativeAction = 152
PayloadFormatInvalid = 153
RetainNotSupported = 154
QoSNotSupported = 155
UseAnotherServer = 156
ServerMoved = 157
ConnectionRateExceeded = 159
MaximumConnectTime = 160
SubscriptionIdentifiersNotSupported = 161
WildcardSubscriptionsNotSupported = 162
MqoqNoFlowState = 179
MqoqNotFlowOwner = 180
MqoqStreamTypeError = 181
MqoqBadFlowId = 182
MqoqPersistentTopic = 183
MqoqPersistentSubError = 184
MqoqOptionalHeader = 185
MqoqIncompletePacket = 186
MqoqFlowOpenIdle = 187
MqoqFlowCancelled = 188
MqoqFlowPacketCancelled = 189
MqoqFlowRefused = 190
MqoqDiscardState = 191
MqoqServerPushNotWelcome = 192
MqoqRecoveryFailed = 193
Implementations§
Source§impl ReasonCode
impl ReasonCode
pub fn is_success(&self) -> bool
pub fn is_error(&self) -> bool
pub fn is_mqoq_error(&self) -> bool
pub fn mqoq_error_level(&self) -> Option<u8>
pub fn from_u8(value: u8) -> Option<Self>
pub fn to_quic_stream_code(self) -> Option<QuicStreamCode>
pub fn from_quic_stream_code(code: QuicStreamCode) -> Option<Self>
Trait Implementations§
Source§impl Clone for ReasonCode
impl Clone for ReasonCode
Source§fn clone(&self) -> ReasonCode
fn clone(&self) -> ReasonCode
Returns a duplicate 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 ReasonCode
impl Debug for ReasonCode
Source§impl From<ReasonCode> for u8
impl From<ReasonCode> for u8
Source§fn from(code: ReasonCode) -> Self
fn from(code: ReasonCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReasonCode
impl PartialEq for ReasonCode
impl Copy for ReasonCode
impl Eq for ReasonCode
impl StructuralPartialEq for ReasonCode
Auto Trait Implementations§
impl Freeze for ReasonCode
impl RefUnwindSafe for ReasonCode
impl Send for ReasonCode
impl Sync for ReasonCode
impl Unpin for ReasonCode
impl UnsafeUnpin for ReasonCode
impl UnwindSafe for ReasonCode
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