#[non_exhaustive]pub enum BrokerCloseCode {
BrokerShutdown,
EventStreamTooSlow,
}Expand description
Stable deliberate-close 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.
BrokerShutdown
The broker is shutting down normally.
EventStreamTooSlow
The plugin fell behind the bounded live event stream.
Implementations§
Source§impl BrokerCloseCode
impl BrokerCloseCode
Sourcepub const fn wire_value(self) -> u32
pub const fn wire_value(self) -> u32
Returns the integer carried in a BrokerClose frame.
Trait Implementations§
Source§impl Clone for BrokerCloseCode
impl Clone for BrokerCloseCode
impl Copy for BrokerCloseCode
Auto Trait Implementations§
impl Freeze for BrokerCloseCode
impl RefUnwindSafe for BrokerCloseCode
impl Send for BrokerCloseCode
impl Sync for BrokerCloseCode
impl Unpin for BrokerCloseCode
impl UnsafeUnpin for BrokerCloseCode
impl UnwindSafe for BrokerCloseCode
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