pub struct RpcServerObservabilityConfig {
pub slow_call_threshold: Duration,
pub payload_preview_bytes: usize,
pub log_payload_preview: bool,
}Fields§
§slow_call_threshold: Duration§payload_preview_bytes: usize§log_payload_preview: boolImplementations§
Source§impl RpcServerObservabilityConfig
impl RpcServerObservabilityConfig
pub fn with_slow_call_threshold(self, threshold: Duration) -> Self
pub fn with_payload_preview(self, bytes: usize) -> Self
Trait Implementations§
Source§impl Clone for RpcServerObservabilityConfig
impl Clone for RpcServerObservabilityConfig
Source§fn clone(&self) -> RpcServerObservabilityConfig
fn clone(&self) -> RpcServerObservabilityConfig
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 moreSource§impl Debug for RpcServerObservabilityConfig
impl Debug for RpcServerObservabilityConfig
Source§impl PartialEq for RpcServerObservabilityConfig
impl PartialEq for RpcServerObservabilityConfig
Source§fn eq(&self, other: &RpcServerObservabilityConfig) -> bool
fn eq(&self, other: &RpcServerObservabilityConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RpcServerObservabilityConfig
impl Eq for RpcServerObservabilityConfig
impl StructuralPartialEq for RpcServerObservabilityConfig
Auto Trait Implementations§
impl Freeze for RpcServerObservabilityConfig
impl RefUnwindSafe for RpcServerObservabilityConfig
impl Send for RpcServerObservabilityConfig
impl Sync for RpcServerObservabilityConfig
impl Unpin for RpcServerObservabilityConfig
impl UnsafeUnpin for RpcServerObservabilityConfig
impl UnwindSafe for RpcServerObservabilityConfig
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