pub struct ServerRunner { /* private fields */ }Implementations§
Source§impl ServerRunner
impl ServerRunner
Sourcepub fn run_until_interrupt(self) -> Result<()>
pub fn run_until_interrupt(self) -> Result<()>
Runs the server until interrupted.
The server is shut down cleanly upon receiving the SIGINT signal at which point the method
returns.
§Errors
This fails when the server cannot be started.
Trait Implementations§
Source§impl Debug for ServerRunner
impl Debug for ServerRunner
Source§impl Drop for ServerRunner
impl Drop for ServerRunner
Auto Trait Implementations§
impl !RefUnwindSafe for ServerRunner
impl !Sync for ServerRunner
impl !UnwindSafe for ServerRunner
impl Freeze for ServerRunner
impl Send for ServerRunner
impl Unpin for ServerRunner
impl UnsafeUnpin for ServerRunner
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