pub struct AdminServer { /* private fields */ }Expand description
The admin server, bound and ready to run.
Implementations§
Source§impl AdminServer
impl AdminServer
Sourcepub async fn bind(
addr: SocketAddr,
render: RenderFn,
health: Arc<HealthState>,
) -> Result<Self>
pub async fn bind( addr: SocketAddr, render: RenderFn, health: Arc<HealthState>, ) -> Result<Self>
Bind the admin socket. Use port 0 to let the OS choose (tests).
Sourcepub fn local_addr(&self) -> SocketAddr
pub fn local_addr(&self) -> SocketAddr
The bound address (relevant with port 0).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AdminServer
impl !RefUnwindSafe for AdminServer
impl Send for AdminServer
impl Sync for AdminServer
impl Unpin for AdminServer
impl UnsafeUnpin for AdminServer
impl !UnwindSafe for AdminServer
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