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