pub struct ControlServer<H>{ /* private fields */ }Expand description
HTTP server hosting the control plane.
Implementations§
Source§impl<H> ControlServer<H>
impl<H> ControlServer<H>
Sourcepub fn new(state: ControlState<H>) -> Self
pub fn new(state: ControlState<H>) -> Self
Build a server bound to state.
Sourcepub fn into_router(self) -> Router
pub fn into_router(self) -> Router
Consume the server and return the underlying axum router. Useful
for in-process integration tests via tower::ServiceExt::oneshot,
which avoid the cost of a real TCP bind.
Auto Trait Implementations§
impl<H> Freeze for ControlServer<H>where
H: Freeze,
impl<H> RefUnwindSafe for ControlServer<H>where
H: RefUnwindSafe,
impl<H> Send for ControlServer<H>
impl<H> Sync for ControlServer<H>
impl<H> Unpin for ControlServer<H>where
H: Unpin,
impl<H> UnsafeUnpin for ControlServer<H>where
H: UnsafeUnpin,
impl<H> UnwindSafe for ControlServer<H>where
H: UnwindSafe,
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