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
Auto Trait Implementations§
impl Freeze for ServerRunner
impl !RefUnwindSafe for ServerRunner
impl Send for ServerRunner
impl !Sync for ServerRunner
impl Unpin for ServerRunner
impl !UnwindSafe 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