pub struct MetricsExtension;Expand description
Metrics collection extension
Trait Implementations§
Source§impl Extension for MetricsExtension
impl Extension for MetricsExtension
Source§fn transform(&self, value: ExtensionValue) -> Result<ExtensionValue, String>
fn transform(&self, value: ExtensionValue) -> Result<ExtensionValue, String>
Transform extension value (optional)
Source§fn is_compatible(&self, _version: ProtocolVersion) -> bool
fn is_compatible(&self, _version: ProtocolVersion) -> bool
Check if extension is compatible with protocol version
Auto Trait Implementations§
impl Freeze for MetricsExtension
impl RefUnwindSafe for MetricsExtension
impl Send for MetricsExtension
impl Sync for MetricsExtension
impl Unpin for MetricsExtension
impl UnwindSafe for MetricsExtension
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