pub struct ObjectClassHandle(/* private fields */);Expand description
Handle of an object class of the FDD.
Opaque: equality, ordering and hashing work on the encoded bytes. Display prints them in
hexadecimal.
Implementations§
Source§impl ObjectClassHandle
impl ObjectClassHandle
Sourcepub fn from_encoded(encoded: impl Into<Bytes>) -> Self
pub fn from_encoded(encoded: impl Into<Bytes>) -> Self
Wraps the encoded form of a handle exactly as an RTI produced it.
Sourcepub fn decode(encoded: &[u8]) -> RtiResult<Self>
pub fn decode(encoded: &[u8]) -> RtiResult<Self>
Reconstitutes a handle that was received as a value, for example inside an attribute or
parameter value (12.2). Fails with CouldNotDecode when there are no bytes at all.
Sourcepub fn encode(&self) -> Bytes
pub fn encode(&self) -> Bytes
The encoded form, ready to be sent as a value to other federates (12.2).
Sourcepub fn encoded_length(&self) -> usize
pub fn encoded_length(&self) -> usize
Number of bytes of the encoded form.
Trait Implementations§
Source§impl AsRef<[u8]> for ObjectClassHandle
impl AsRef<[u8]> for ObjectClassHandle
Source§impl Clone for ObjectClassHandle
impl Clone for ObjectClassHandle
Source§impl Debug for ObjectClassHandle
impl Debug for ObjectClassHandle
Source§impl Display for ObjectClassHandle
impl Display for ObjectClassHandle
impl Eq for ObjectClassHandle
Source§impl Hash for ObjectClassHandle
impl Hash for ObjectClassHandle
Source§impl Ord for ObjectClassHandle
impl Ord for ObjectClassHandle
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ObjectClassHandle
impl PartialEq for ObjectClassHandle
Source§impl PartialOrd for ObjectClassHandle
impl PartialOrd for ObjectClassHandle
impl StructuralPartialEq for ObjectClassHandle
Auto Trait Implementations§
impl !Freeze for ObjectClassHandle
impl Forget for ObjectClassHandle
impl Move for ObjectClassHandle
impl RefUnwindSafe for ObjectClassHandle
impl Send for ObjectClassHandle
impl Sync for ObjectClassHandle
impl Unpin for ObjectClassHandle
impl UnsafeUnpin for ObjectClassHandle
impl UnwindSafe for ObjectClassHandle
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