pub struct ServerStatusWrapper { /* private fields */ }
Expand description
Wrapper for managing the ServerStatus
variable on the server.
Implementations§
Source§impl ServerStatusWrapper
impl ServerStatusWrapper
Sourcepub fn set_state(&self, state: ServerState)
pub fn set_state(&self, state: ServerState)
Set the state of the server. Note that this is not necessarily reflected in server behavior.
Sourcepub fn build_info(&self) -> BuildInfo
pub fn build_info(&self) -> BuildInfo
Get a copy of the current build info.
Sourcepub fn state(&self) -> ServerState
pub fn state(&self) -> ServerState
Get the current server state.
Sourcepub fn start_time(&self) -> DateTime
pub fn start_time(&self) -> DateTime
Get the start time of the server.
Sourcepub fn seconds_till_shutdown(&self) -> Option<u32>
pub fn seconds_till_shutdown(&self) -> Option<u32>
Get the current seconds till shutdown value.
Sourcepub fn shutdown_reason(&self) -> Option<LocalizedText>
pub fn shutdown_reason(&self) -> Option<LocalizedText>
Get the current shutdown reason.
Sourcepub fn full_status_obj(&self) -> ExtensionObject
pub fn full_status_obj(&self) -> ExtensionObject
Get the full status object as an extension object.
Auto Trait Implementations§
impl Freeze for ServerStatusWrapper
impl !RefUnwindSafe for ServerStatusWrapper
impl Send for ServerStatusWrapper
impl Sync for ServerStatusWrapper
impl Unpin for ServerStatusWrapper
impl !UnwindSafe for ServerStatusWrapper
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