pub struct AdminHandle { /* private fields */ }Expand description
Thread-safe handle to the shared AdminService.
Implementations§
Source§impl AdminHandle
impl AdminHandle
Sourcepub fn new(service: AdminService) -> Self
pub fn new(service: AdminService) -> Self
Wrap an AdminService in a shared handle.
Sourcepub fn service(&self) -> Arc<AdminService>
pub fn service(&self) -> Arc<AdminService>
Clone the inner Arc to the AdminService.
Trait Implementations§
Source§impl Clone for AdminHandle
impl Clone for AdminHandle
Source§fn clone(&self) -> AdminHandle
fn clone(&self) -> AdminHandle
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 AdminHandle
impl RefUnwindSafe for AdminHandle
impl Send for AdminHandle
impl Sync for AdminHandle
impl Unpin for AdminHandle
impl UnsafeUnpin for AdminHandle
impl UnwindSafe for AdminHandle
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