pub struct MeterLayer { /* private fields */ }Expand description
Tower layer that installs MeterService.
Implementations§
Source§impl MeterLayer
impl MeterLayer
Sourcepub fn new(config: EdgeConfig) -> Self
pub fn new(config: EdgeConfig) -> Self
Construct a metering layer from its shared configuration.
Trait Implementations§
Source§impl Clone for MeterLayer
impl Clone for MeterLayer
Source§fn clone(&self) -> MeterLayer
fn clone(&self) -> MeterLayer
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 MeterLayer
impl Debug for MeterLayer
Auto Trait Implementations§
impl !RefUnwindSafe for MeterLayer
impl !UnwindSafe for MeterLayer
impl Freeze for MeterLayer
impl Send for MeterLayer
impl Sync for MeterLayer
impl Unpin for MeterLayer
impl UnsafeUnpin for MeterLayer
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