pub struct ActiveObjectMap { /* private fields */ }Expand description
Active-Object-Map.
Implementations§
Source§impl ActiveObjectMap
impl ActiveObjectMap
Sourcepub const fn new(uniqueness: IdUniquenessPolicy) -> Self
pub const fn new(uniqueness: IdUniquenessPolicy) -> Self
Konstruktor.
Sourcepub fn activate(
&mut self,
oid: ObjectId,
servant: Box<dyn Servant>,
) -> PoaResult<ServantId>
pub fn activate( &mut self, oid: ObjectId, servant: Box<dyn Servant>, ) -> PoaResult<ServantId>
Registriert ein neues Servant unter der gegebenen ObjectId.
§Errors
ObjectAlreadyActivewennoidschon mappt.ServantAlreadyActive(UNIQUE_ID) wenn der Servant schon eine andere ObjectId hat.
Sourcepub fn add_alias(&mut self, sid: ServantId, oid: ObjectId) -> PoaResult<()>
pub fn add_alias(&mut self, sid: ServantId, oid: ObjectId) -> PoaResult<()>
Registriert ein bestehendes Servant unter einer zusaetzlichen ObjectId (nur unter MULTIPLE_ID erlaubt).
§Errors
ServantNotActivewennsidunbekannt.ObjectAlreadyActivewennoidschon mappt.ServantAlreadyActivewenn UNIQUE_ID.
Sourcepub fn get(&self, oid: &ObjectId) -> Option<&dyn Servant>
pub fn get(&self, oid: &ObjectId) -> Option<&dyn Servant>
Liefert den Servant fuer eine ObjectId.
Sourcepub fn servant_id(&self, oid: &ObjectId) -> Option<ServantId>
pub fn servant_id(&self, oid: &ObjectId) -> Option<ServantId>
Liefert die ServantId fuer eine ObjectId.
Sourcepub fn ids_for_servant(&self, sid: ServantId) -> &[ObjectId]
pub fn ids_for_servant(&self, sid: ServantId) -> &[ObjectId]
Liefert die Object-Ids unter denen ein Servant registriert ist.
Trait Implementations§
Source§impl Debug for ActiveObjectMap
impl Debug for ActiveObjectMap
Source§impl Default for ActiveObjectMap
impl Default for ActiveObjectMap
Source§fn default() -> ActiveObjectMap
fn default() -> ActiveObjectMap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ActiveObjectMap
impl !RefUnwindSafe for ActiveObjectMap
impl Send for ActiveObjectMap
impl Sync for ActiveObjectMap
impl Unpin for ActiveObjectMap
impl UnsafeUnpin for ActiveObjectMap
impl !UnwindSafe for ActiveObjectMap
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