pub struct Reloader<S> {
pub service: Arc<OnceLock<Arc<ShardedLock<S>>>>,
}
Fields§
§service: Arc<OnceLock<Arc<ShardedLock<S>>>>
Implementations§
Source§impl<S> Reloader<S>
impl<S> Reloader<S>
pub fn setup(&self, service: Arc<ShardedLock<S>>)
pub fn reload(&self, service: S)
pub fn into_layer(self) -> ReloadLayer<S>
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Reloader<S>
impl<S> RefUnwindSafe for Reloader<S>
impl<S> Send for Reloader<S>
impl<S> Sync for Reloader<S>
impl<S> Unpin for Reloader<S>
impl<S> UnwindSafe for Reloader<S>
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