pub struct ProcessRegistry { /* private fields */ }Implementations§
Source§impl ProcessRegistry
impl ProcessRegistry
pub fn new() -> Self
pub async fn insert(&self, pid: ExternalPid, handle: ProcessHandle)
pub async fn remove(&self, pid: &ExternalPid) -> Option<ProcessHandle>
pub async fn get(&self, pid: &ExternalPid) -> Option<ProcessHandle>
pub async fn register(&self, name: Atom, pid: ExternalPid) -> Result<()>
pub async fn unregister(&self, name: &Atom) -> Result<()>
pub async fn whereis(&self, name: &Atom) -> Option<ExternalPid>
pub async fn registered(&self) -> Vec<Atom>
pub async fn count(&self) -> usize
Trait Implementations§
Source§impl Clone for ProcessRegistry
impl Clone for ProcessRegistry
Source§fn clone(&self) -> ProcessRegistry
fn clone(&self) -> ProcessRegistry
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 ProcessRegistry
impl !RefUnwindSafe for ProcessRegistry
impl Send for ProcessRegistry
impl Sync for ProcessRegistry
impl Unpin for ProcessRegistry
impl !UnwindSafe for ProcessRegistry
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