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