#[repr(u8)]pub enum ObjectKind {
Show 13 variants
Invalid = 0,
Participant = 1,
Topic = 2,
Publisher = 3,
Subscriber = 4,
DataWriter = 5,
DataReader = 6,
Type = 10,
QosProfile = 11,
Application = 12,
Agent = 13,
Client = 14,
Domain = 15,
}Expand description
Convenience-Enum aller in der Spec definierten Object-Kinds.
Variants§
Invalid = 0
Participant = 1
Topic = 2
Publisher = 3
Subscriber = 4
DataWriter = 5
DataReader = 6
Type = 10
QosProfile = 11
Application = 12
Agent = 13
Client = 14
Domain = 15
Implementations§
Source§impl ObjectKind
impl ObjectKind
Sourcepub fn from_u8(byte: u8) -> Result<Self, XrceError>
pub fn from_u8(byte: u8) -> Result<Self, XrceError>
Konvertiert ein 4-Bit-Wert. Werte ausserhalb der Spec → Fehler.
§Errors
ValueOutOfRange, wenn byte keinem OBJK_* entspricht. Werte
> 0x0F werden ebenfalls abgelehnt — die ObjectId-Bit-Layer
stellt das normalerweise sicher.
Sourcepub fn is_endpoint(self) -> bool
pub fn is_endpoint(self) -> bool
true, wenn der Object-Kind ein DDS-Endpoint ist
(DataWriter oder DataReader).
Sourcepub fn is_container(self) -> bool
pub fn is_container(self) -> bool
true, wenn der Object-Kind ein DDS-Container ist
(Publisher / Subscriber / Participant).
Trait Implementations§
Source§impl Clone for ObjectKind
impl Clone for ObjectKind
Source§fn clone(&self) -> ObjectKind
fn clone(&self) -> ObjectKind
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 ObjectKind
impl Debug for ObjectKind
Source§impl Hash for ObjectKind
impl Hash for ObjectKind
Source§impl PartialEq for ObjectKind
impl PartialEq for ObjectKind
Source§fn eq(&self, other: &ObjectKind) -> bool
fn eq(&self, other: &ObjectKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ObjectKind
impl Eq for ObjectKind
impl StructuralPartialEq for ObjectKind
Auto Trait Implementations§
impl Freeze for ObjectKind
impl RefUnwindSafe for ObjectKind
impl Send for ObjectKind
impl Sync for ObjectKind
impl Unpin for ObjectKind
impl UnsafeUnpin for ObjectKind
impl UnwindSafe for ObjectKind
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