pub enum Change {
Show 15 variants
Created(Note),
Updated {
doc: Note,
update: String,
seq: u32,
session: Option<String>,
},
Renamed(Note),
Deleted {
id: String,
org: String,
at: i64,
by: String,
},
Squashed {
id: String,
org: String,
until: u32,
removed: u32,
at: i64,
by: String,
},
Present {
org: String,
present: Present,
},
Left {
id: String,
org: String,
session: String,
client: Option<u64>,
},
Asked {
org: String,
thread: Thread,
},
Replied {
org: String,
thread: Thread,
},
Resolved {
org: String,
thread: Thread,
},
SlotChanged {
org: String,
slot: Slot,
},
BuildingChanged {
org: String,
slot: Slot,
},
PropsChanged {
org: String,
slot: Slot,
by: String,
},
Marked {
org: String,
mark: Mark,
},
Unmarked {
id: String,
org: String,
mark: String,
},
}Expand description
A write, as the channel says it to every open watch.
Variants§
Created(Note)
A note made (body included).
Updated
A CRDT update applied: the note after it (body included), the
update’s bytes (base64), its seq, and the presence session it came
from, when it said.
Renamed(Note)
Deleted
Squashed
The changes up to until collapsed into one snapshot.
Present
Someone is on a note, or moved their caret.
Left
Someone left a note.
Asked
V2-30: a question asked on a range, a reply under it, a thread resolved (or opened again).
Replied
Resolved
SlotChanged
NOTES-4: a slot filled or emptied, a build said, props merged (by by) — the slot whole.
BuildingChanged
PropsChanged
Marked
NOTES-5: a mark made or changed (whole), or taken off.
Unmarked
Implementations§
Trait Implementations§
impl Eq for Change
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Forget for Change
impl Freeze for Change
impl Move for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.