pub struct MaintenanceManager {
hmr_context: HmrContext,
config: OrbitonConfig,
}
Expand description
Maintenance operations for the development environment
Fields§
§hmr_context: HmrContext
§config: OrbitonConfig
Implementations§
Source§impl MaintenanceManager
impl MaintenanceManager
Sourcepub fn cleanup_stale_updates(&self, max_age: Duration)
pub fn cleanup_stale_updates(&self, max_age: Duration)
Perform cleanup of stale HMR updates
Sourcepub fn clear_all_updates(&self)
pub fn clear_all_updates(&self)
Clear all pending HMR updates
Sourcepub fn get_update_info(&self) -> Option<Duration>
pub fn get_update_info(&self) -> Option<Duration>
Get information about the oldest pending update
Sourcepub fn apply_config_overrides(&mut self, overrides: OrbitonConfig)
pub fn apply_config_overrides(&mut self, overrides: OrbitonConfig)
Merge configuration with override settings
Sourcepub fn create_simple_dev_server(
&self,
port: u16,
project_dir: &Path,
) -> Result<DevServer>
pub fn create_simple_dev_server( &self, port: u16, project_dir: &Path, ) -> Result<DevServer>
Create a simple dev server for testing (uses DevServer::new)
Sourcepub fn perform_automated_maintenance(&self) -> Result<()>
pub fn perform_automated_maintenance(&self) -> Result<()>
Perform automated maintenance based on configuration
Sourcepub fn show_status(&self)
pub fn show_status(&self)
Show maintenance status information
Sourcepub fn config(&self) -> &OrbitonConfig
pub fn config(&self) -> &OrbitonConfig
Get the configuration for external use
Sourcepub fn hmr_context(&self) -> &HmrContext
pub fn hmr_context(&self) -> &HmrContext
Get the HMR context for external use
Auto Trait Implementations§
impl Freeze for MaintenanceManager
impl RefUnwindSafe for MaintenanceManager
impl Send for MaintenanceManager
impl Sync for MaintenanceManager
impl Unpin for MaintenanceManager
impl UnwindSafe for MaintenanceManager
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more