pub struct ServerControl {
pub current_status: ServerStatus,
pub last_error: Result<(), ServerError>,
/* private fields */
}Fields§
§current_status: ServerStatus§last_error: Result<(), ServerError>Implementations§
Source§impl ServerControl
impl ServerControl
pub fn new() -> Self
pub fn get_ready( &mut self, ) -> Result<(Receiver<String>, Sender<Result<(), ServerError>>, Sender<Result<(), ServerError>>), ServerError>
pub fn stop(&mut self, msg: &str) -> Result<(), ServerError>
pub fn update_status(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServerControl
impl !RefUnwindSafe for ServerControl
impl Send for ServerControl
impl Sync for ServerControl
impl Unpin for ServerControl
impl !UnwindSafe for ServerControl
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