pub struct InteractionClassHandle(/* private fields */);Expand description
Handle of an interaction class of the FDD.
Opaque: equality, ordering and hashing work on the encoded bytes. Display prints them in
hexadecimal.
Implementations§
Source§impl InteractionClassHandle
impl InteractionClassHandle
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 InteractionClassHandle
impl AsRef<[u8]> for InteractionClassHandle
Source§impl Clone for InteractionClassHandle
impl Clone for InteractionClassHandle
Source§impl Debug for InteractionClassHandle
impl Debug for InteractionClassHandle
Source§impl Display for InteractionClassHandle
impl Display for InteractionClassHandle
impl Eq for InteractionClassHandle
Source§impl Hash for InteractionClassHandle
impl Hash for InteractionClassHandle
Source§impl Ord for InteractionClassHandle
impl Ord for InteractionClassHandle
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 InteractionClassHandle
impl PartialEq for InteractionClassHandle
Source§impl PartialOrd for InteractionClassHandle
impl PartialOrd for InteractionClassHandle
impl StructuralPartialEq for InteractionClassHandle
Auto Trait Implementations§
impl !Freeze for InteractionClassHandle
impl Forget for InteractionClassHandle
impl Move for InteractionClassHandle
impl RefUnwindSafe for InteractionClassHandle
impl Send for InteractionClassHandle
impl Sync for InteractionClassHandle
impl Unpin for InteractionClassHandle
impl UnsafeUnpin for InteractionClassHandle
impl UnwindSafe for InteractionClassHandle
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