pub struct ServerManager { /* private fields */ }Implementations§
Source§impl ServerManager
impl ServerManager
pub const fn new() -> Self
Sourcepub fn ensure_running(
&mut self,
config: ServerLaunchConfig,
) -> Result<ManagedServerEndpoint, ServerError>
pub fn ensure_running( &mut self, config: ServerLaunchConfig, ) -> Result<ManagedServerEndpoint, ServerError>
Reuse is limited to a still-live process this manager created with the exact same config. An unrelated listener is never adopted, even if it answers the health endpoint.
pub fn shutdown(&mut self) -> Result<(), ServerError>
pub fn diagnostics(&self) -> String
Trait Implementations§
Source§impl Debug for ServerManager
impl Debug for ServerManager
Source§impl Default for ServerManager
impl Default for ServerManager
Source§fn default() -> ServerManager
fn default() -> ServerManager
Returns the “default value” for a type. Read more
Source§impl Drop for ServerManager
impl Drop for ServerManager
Auto Trait Implementations§
impl !RefUnwindSafe for ServerManager
impl !UnwindSafe for ServerManager
impl Freeze for ServerManager
impl Send for ServerManager
impl Sync for ServerManager
impl Unpin for ServerManager
impl UnsafeUnpin for ServerManager
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