#[non_exhaustive]pub enum BrokerErrorCode {
UnsupportedProtocolVersion,
InvalidHandshake,
ResourceLimit,
}Expand description
Stable handshake rejection meanings defined by protocol version 1.
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.
UnsupportedProtocolVersion
The requested protocol version is not supported.
InvalidHandshake
The first frame is malformed or contains an invalid plugin identifier.
ResourceLimit
The broker cannot accept another plugin session.
Implementations§
Source§impl BrokerErrorCode
impl BrokerErrorCode
Sourcepub const fn wire_value(self) -> u32
pub const fn wire_value(self) -> u32
Returns the integer carried in a BrokerError frame.
Trait Implementations§
Source§impl Clone for BrokerErrorCode
impl Clone for BrokerErrorCode
impl Copy for BrokerErrorCode
Auto Trait Implementations§
impl Freeze for BrokerErrorCode
impl RefUnwindSafe for BrokerErrorCode
impl Send for BrokerErrorCode
impl Sync for BrokerErrorCode
impl Unpin for BrokerErrorCode
impl UnsafeUnpin for BrokerErrorCode
impl UnwindSafe for BrokerErrorCode
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