pub struct ConfigReloadService { /* private fields */ }Expand description
A service responsible for handling configuration reloads
Implementations§
Source§impl ConfigReloadService
impl ConfigReloadService
pub fn new(config: ServerConfig) -> Self
pub async fn set_config_path(&self, path: String)
pub async fn get_config_path(&self) -> Option<String>
pub async fn get_config(&self) -> ServerConfig
pub async fn reload_config(&self) -> Result<(), Box<dyn Error>>
Trait Implementations§
Source§impl Clone for ConfigReloadService
impl Clone for ConfigReloadService
Source§fn clone(&self) -> ConfigReloadService
fn clone(&self) -> ConfigReloadService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConfigReloadService
impl !RefUnwindSafe for ConfigReloadService
impl Send for ConfigReloadService
impl Sync for ConfigReloadService
impl Unpin for ConfigReloadService
impl !UnwindSafe for ConfigReloadService
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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