pub struct Mutation {
pub handle: MessageHandle,
pub revision: u32,
pub change: Change,
}Expand description
An owned transcript mutation (see MessageMutation).
Fields§
§handle: MessageHandle§revision: u32Apply only if newer than the last revision applied for handle.
change: ChangeImplementations§
Source§impl Mutation
impl Mutation
Sourcepub fn from_engine<'e>(
mutation: MessageMutation,
body: impl Fn(&BodyRef) -> &'e str,
sender_key: impl FnOnce(ConversationKey, SenderScope) -> Option<PublicKey>,
) -> Self
pub fn from_engine<'e>( mutation: MessageMutation, body: impl Fn(&BodyRef) -> &'e str, sender_key: impl FnOnce(ConversationKey, SenderScope) -> Option<PublicKey>, ) -> Self
The owned form of one of the engine’s mutations, read while it is
fresh: body is Engine::body until the engine’s queue empties.
sender_key gives the full key behind a sender scope, where one is
known.
Sourcepub fn describes_receipt(&self) -> bool
pub fn describes_receipt(&self) -> bool
Whether this record describes content that arrived in the frame that produced it, as opposed to an outbound echo, a gap placeholder, or a change to an earlier message. Radio metadata belongs only on these.
Trait Implementations§
impl Eq for Mutation
impl StructuralPartialEq for Mutation
Auto Trait Implementations§
impl Freeze for Mutation
impl RefUnwindSafe for Mutation
impl Send for Mutation
impl Sync for Mutation
impl Unpin for Mutation
impl UnwindSafe for Mutation
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)