Struct sc_rpc_server::middleware::metrics::MetricsLayer
source · pub struct MetricsLayer { /* private fields */ }Expand description
Metrics layer.
Implementations§
source§impl MetricsLayer
impl MetricsLayer
sourcepub fn new(metrics: RpcMetrics, transport_label: &'static str) -> Self
pub fn new(metrics: RpcMetrics, transport_label: &'static str) -> Self
Create a new MetricsLayer.
Trait Implementations§
source§impl Clone for MetricsLayer
impl Clone for MetricsLayer
source§fn clone(&self) -> MetricsLayer
fn clone(&self) -> MetricsLayer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for MetricsLayer
impl Send for MetricsLayer
impl Sync for MetricsLayer
impl Unpin for MetricsLayer
impl !UnwindSafe for MetricsLayer
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