pub struct AdminState<B: CacheBackend> {
pub backend: B,
pub config: Arc<AdminConfig>,
pub stats: Arc<GlobalStats>,
}Expand description
Shared state for admin API handlers.
Fields§
§backend: B§config: Arc<AdminConfig>§stats: Arc<GlobalStats>Implementations§
Source§impl<B: CacheBackend> AdminState<B>
impl<B: CacheBackend> AdminState<B>
Sourcepub fn new(backend: B, config: AdminConfig) -> Self
pub fn new(backend: B, config: AdminConfig) -> Self
Creates new admin state.
Trait Implementations§
Source§impl<B: Clone + CacheBackend> Clone for AdminState<B>
impl<B: Clone + CacheBackend> Clone for AdminState<B>
Source§fn clone(&self) -> AdminState<B>
fn clone(&self) -> AdminState<B>
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<B> Freeze for AdminState<B>where
B: Freeze,
impl<B> !RefUnwindSafe for AdminState<B>
impl<B> Send for AdminState<B>
impl<B> Sync for AdminState<B>
impl<B> Unpin for AdminState<B>where
B: Unpin,
impl<B> !UnwindSafe for AdminState<B>
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