pub struct ActorRegistry { /* private fields */ }Implementations§
Source§impl ActorRegistry
impl ActorRegistry
pub fn new() -> Self
pub fn register( &mut self, session_id: String, namespace: String, tenant: String, ) -> ActorInfo
pub fn get(&self, session_id: &str) -> Option<&ActorInfo>
pub fn remove(&mut self, session_id: &str) -> Option<ActorInfo>
pub fn active_count(&self) -> usize
Trait Implementations§
Source§impl Debug for ActorRegistry
impl Debug for ActorRegistry
Auto Trait Implementations§
impl !Freeze for ActorRegistry
impl RefUnwindSafe for ActorRegistry
impl Send for ActorRegistry
impl Sync for ActorRegistry
impl Unpin for ActorRegistry
impl UnsafeUnpin for ActorRegistry
impl UnwindSafe for ActorRegistry
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