pub struct RuntimePressureState {
pub outbound_credit_window: u64,
pub inbound_credit_window: u64,
pub remote_backpressure_level: u16,
pub remote_backpressure_reason: u16,
pub remote_retry_after_ms: u32,
pub remote_pressure_flags: u32,
pub local_backpressure_level: u16,
pub local_backpressure_reason: u16,
pub local_retry_after_ms: u32,
pub local_pressure_flags: u32,
}Fields§
§outbound_credit_window: u64§inbound_credit_window: u64§remote_backpressure_level: u16§remote_backpressure_reason: u16§remote_retry_after_ms: u32§remote_pressure_flags: u32§local_backpressure_level: u16§local_backpressure_reason: u16§local_retry_after_ms: u32§local_pressure_flags: u32Implementations§
Source§impl RuntimePressureState
impl RuntimePressureState
pub fn apply_inbound( &mut self, message_type: MessageType, metadata: PressureMetadata, ) -> Result<(), NnrpError>
pub fn apply_outbound( &mut self, message_type: MessageType, metadata: PressureMetadata, ) -> Result<(), NnrpError>
Trait Implementations§
Source§impl Clone for RuntimePressureState
impl Clone for RuntimePressureState
Source§fn clone(&self) -> RuntimePressureState
fn clone(&self) -> RuntimePressureState
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 RuntimePressureState
Source§impl Debug for RuntimePressureState
impl Debug for RuntimePressureState
Source§impl Default for RuntimePressureState
impl Default for RuntimePressureState
Source§fn default() -> RuntimePressureState
fn default() -> RuntimePressureState
Returns the “default value” for a type. Read more
impl Eq for RuntimePressureState
Source§impl PartialEq for RuntimePressureState
impl PartialEq for RuntimePressureState
impl StructuralPartialEq for RuntimePressureState
Auto Trait Implementations§
impl Freeze for RuntimePressureState
impl RefUnwindSafe for RuntimePressureState
impl Send for RuntimePressureState
impl Sync for RuntimePressureState
impl Unpin for RuntimePressureState
impl UnsafeUnpin for RuntimePressureState
impl UnwindSafe for RuntimePressureState
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