pub struct UserData {
pub value: Vec<u8>,
}Expand description
Attaches arbitrary application-specific data to an entity.
The value is propagated during discovery and made available to remote participants, allowing applications to embed metadata such as version information or node identity in the entity itself.
Fields§
§value: Vec<u8>The raw byte payload.
Trait Implementations§
impl Eq for UserData
impl StructuralPartialEq for UserData
Auto Trait Implementations§
impl Freeze for UserData
impl RefUnwindSafe for UserData
impl Send for UserData
impl Sync for UserData
impl Unpin for UserData
impl UnsafeUnpin for UserData
impl UnwindSafe for UserData
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