pub struct AdminRegistry { /* private fields */ }Expand description
Registry of all admin resources.
Implementations§
Source§impl AdminRegistry
impl AdminRegistry
Sourcepub fn register<R: AdminResource>(&mut self, resource: R)
pub fn register<R: AdminResource>(&mut self, resource: R)
Register a resource. Panics if a resource with the same slug already exists.
Sourcepub fn all(&self) -> Vec<Arc<dyn AdminResource>>
pub fn all(&self) -> Vec<Arc<dyn AdminResource>>
Get all registered resources in the order they were registered.
Auto Trait Implementations§
impl Freeze for AdminRegistry
impl !RefUnwindSafe for AdminRegistry
impl Send for AdminRegistry
impl Sync for AdminRegistry
impl Unpin for AdminRegistry
impl UnsafeUnpin for AdminRegistry
impl !UnwindSafe for AdminRegistry
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