pub struct ServerLifecycleManager { /* private fields */ }
Expand description
Server lifecycle manager
Implementations§
Source§impl ServerLifecycleManager
impl ServerLifecycleManager
Sourcepub fn record_event(
&self,
id: ServerId,
name: String,
event: ServerLifecycleEvent,
details: Option<String>,
) -> Result<()>
pub fn record_event( &self, id: ServerId, name: String, event: ServerLifecycleEvent, details: Option<String>, ) -> Result<()>
Record a server event
This method is instrumented with tracing
.
Sourcepub fn get_status(&self, id: ServerId) -> Result<ServerStatus>
pub fn get_status(&self, id: ServerId) -> Result<ServerStatus>
Get server status
Sourcepub fn get_server_events(
&self,
id: ServerId,
limit: Option<usize>,
) -> Result<Vec<ServerEvent>>
pub fn get_server_events( &self, id: ServerId, limit: Option<usize>, ) -> Result<Vec<ServerEvent>>
Get recent events for a server
Sourcepub fn get_all_events(&self, limit: Option<usize>) -> Result<Vec<ServerEvent>>
pub fn get_all_events(&self, limit: Option<usize>) -> Result<Vec<ServerEvent>>
Get all events
Sourcepub fn clear_events(&self) -> Result<()>
pub fn clear_events(&self) -> Result<()>
Clear events
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServerLifecycleManager
impl RefUnwindSafe for ServerLifecycleManager
impl Send for ServerLifecycleManager
impl Sync for ServerLifecycleManager
impl Unpin for ServerLifecycleManager
impl UnwindSafe for ServerLifecycleManager
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