pub struct ModuleLive { /* private fields */ }Expand description
FRAME-19: a module’s collection — LiveCache::follow_held over the
spec’s params and when, which the module moves with
ModuleLive::update; the registry owns the timing (debounce_ms).
Implementations§
Source§impl ModuleLive
impl ModuleLive
Sourcepub fn update(&self, patch: &Value) -> Result<(), String>
pub fn update(&self, patch: &Value) -> Result<(), String>
patch — { params?, changes_params?, when? } — over what the
collection follows now; the keys left out stay as they are. A patch
that changes nothing asks nothing.
Sourcepub fn spec(&self) -> ModuleSpec
pub fn spec(&self) -> ModuleSpec
The spec as it stands, every update applied.
Source§impl ModuleLive
impl ModuleLive
Sourcepub fn since(&self, seen: u64) -> Crossing
pub fn since(&self, seen: u64) -> Crossing
FRAME-20: what crosses to a subscriber that last saw move seen:
the last move’s change when it is the only one since, else (several
since, or the last one whole) Delta::Whole.
Auto Trait Implementations§
impl !RefUnwindSafe for ModuleLive
impl !Send for ModuleLive
impl !Sync for ModuleLive
impl !UnwindSafe for ModuleLive
impl Forget for ModuleLive
impl Freeze for ModuleLive
impl Move for ModuleLive
impl Unpin for ModuleLive
impl UnsafeUnpin for ModuleLive
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