pub struct WsSlowConsumerCloseReason {
pub error: WsCloseError,
pub delivery_class: WsDeliveryClass,
pub cause: WsPressureCause,
pub recovery: WsRecoveryAction,
}Expand description
Structured JSON reason carried by a slow-consumer close frame.
Fields§
§error: WsCloseError§delivery_class: WsDeliveryClass§cause: WsPressureCause§recovery: WsRecoveryActionImplementations§
Source§impl WsSlowConsumerCloseReason
impl WsSlowConsumerCloseReason
pub const fn new( delivery_class: WsDeliveryClass, cause: WsPressureCause, ) -> Self
Trait Implementations§
Source§impl Clone for WsSlowConsumerCloseReason
impl Clone for WsSlowConsumerCloseReason
impl Copy for WsSlowConsumerCloseReason
Source§impl Debug for WsSlowConsumerCloseReason
impl Debug for WsSlowConsumerCloseReason
Source§impl<'de> Deserialize<'de> for WsSlowConsumerCloseReason
impl<'de> Deserialize<'de> for WsSlowConsumerCloseReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WsSlowConsumerCloseReason
impl StructuralPartialEq for WsSlowConsumerCloseReason
Auto Trait Implementations§
impl Forget for WsSlowConsumerCloseReason
impl Freeze for WsSlowConsumerCloseReason
impl Move for WsSlowConsumerCloseReason
impl RefUnwindSafe for WsSlowConsumerCloseReason
impl Send for WsSlowConsumerCloseReason
impl Sync for WsSlowConsumerCloseReason
impl Unpin for WsSlowConsumerCloseReason
impl UnsafeUnpin for WsSlowConsumerCloseReason
impl UnwindSafe for WsSlowConsumerCloseReason
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