pub struct ModificationEvent<I: Identifier> {
pub modified_fields: Vec<u8>,
pub identifier: I,
}
Expand description
A modification event.
Fields§
§modified_fields: Vec<u8>
The serialized data of the modified structure fields.
identifier: I
The reference to the corresponding type.
Implementations§
Source§impl<I: Identifier> ModificationEvent<I>
impl<I: Identifier> ModificationEvent<I>
Sourcepub fn new(data: Vec<u8>, identifier: I) -> Self
pub fn new(data: Vec<u8>, identifier: I) -> Self
Constructs a new Modification Event.
Trait Implementations§
Source§impl<I: Clone + Identifier> Clone for ModificationEvent<I>
impl<I: Clone + Identifier> Clone for ModificationEvent<I>
Source§fn clone(&self) -> ModificationEvent<I>
fn clone(&self) -> ModificationEvent<I>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<I> Freeze for ModificationEvent<I>where
I: Freeze,
impl<I> RefUnwindSafe for ModificationEvent<I>where
I: RefUnwindSafe,
impl<I> Send for ModificationEvent<I>
impl<I> Sync for ModificationEvent<I>
impl<I> Unpin for ModificationEvent<I>where
I: Unpin,
impl<I> UnwindSafe for ModificationEvent<I>where
I: UnwindSafe,
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