pub struct ObjectStore { /* private fields */ }Expand description
Pro-Client Object-Store.
Implementations§
Source§impl ObjectStore
impl ObjectStore
Sourcepub fn get(&self, id: ObjectId) -> Option<&ObjectInstance>
pub fn get(&self, id: ObjectId) -> Option<&ObjectInstance>
Lookup.
Sourcepub fn iter(&self) -> impl Iterator<Item = (ObjectId, &ObjectInstance)>
pub fn iter(&self) -> impl Iterator<Item = (ObjectId, &ObjectInstance)>
Iteriert alle Objekte sortiert nach ObjectId.
Sourcepub fn create(
&mut self,
id: ObjectId,
kind: ObjectKind,
variant: ObjectVariant,
mode: CreationMode,
) -> Result<CreateOutcome, XrceError>
pub fn create( &mut self, id: ObjectId, kind: ObjectKind, variant: ObjectVariant, mode: CreationMode, ) -> Result<CreateOutcome, XrceError>
CREATE-Operation.
Validiert dass der kind der ObjectId mit dem Argument
uebereinstimmt (Spec §7.2.1: Lower-4-Bits-Kind muss zur Variante
passen).
§Errors
ValueOutOfRange, wennid.kind() != kindoderidinvalid ist.
Sourcepub fn delete(&mut self, id: ObjectId) -> bool
pub fn delete(&mut self, id: ObjectId) -> bool
DELETE-Operation. Liefert true, wenn die ID existiert hat.
Sourcepub fn iter_by_kind(
&self,
kind: ObjectKind,
) -> impl Iterator<Item = (ObjectId, &ObjectInstance)>
pub fn iter_by_kind( &self, kind: ObjectKind, ) -> impl Iterator<Item = (ObjectId, &ObjectInstance)>
Filtert nach Kind.
Trait Implementations§
Source§impl Clone for ObjectStore
impl Clone for ObjectStore
Source§fn clone(&self) -> ObjectStore
fn clone(&self) -> ObjectStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectStore
impl Debug for ObjectStore
Source§impl Default for ObjectStore
impl Default for ObjectStore
Source§fn default() -> ObjectStore
fn default() -> ObjectStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ObjectStore
impl RefUnwindSafe for ObjectStore
impl Send for ObjectStore
impl Sync for ObjectStore
impl Unpin for ObjectStore
impl UnsafeUnpin for ObjectStore
impl UnwindSafe for ObjectStore
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