Struct vise_exporter::MetricsServer
source · pub struct MetricsServer<'a> { /* private fields */ }
Expand description
Metrics server bound to a certain local address returned by MetricsExporter::bind()
.
Useful e.g. if you need to find out which port the server was bound to if the 0th port was specified.
Implementations§
source§impl MetricsServer<'_>
impl MetricsServer<'_>
sourcepub fn local_addr(&self) -> SocketAddr
pub fn local_addr(&self) -> SocketAddr
Returns the local address this server is bound to.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MetricsServer<'a>
impl<'a> !RefUnwindSafe for MetricsServer<'a>
impl<'a> Send for MetricsServer<'a>
impl<'a> !Sync for MetricsServer<'a>
impl<'a> Unpin for MetricsServer<'a>
impl<'a> !UnwindSafe for MetricsServer<'a>
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