pub struct StoreOptions { /* private fields */ }Expand description
Options of a GridStore.
Implementations§
Source§impl StoreOptions
impl StoreOptions
Sourcepub fn with_highlight(self, highlight: HighlightPolicy) -> Self
pub fn with_highlight(self, highlight: HighlightPolicy) -> Self
Sets the highlight policy, removal fade included. It belongs to the store, so every view over the store fades the same way.
Sourcepub fn with_publish_interval(self, interval: Duration) -> Self
pub fn with_publish_interval(self, interval: Duration) -> Self
Snapshots are published at most this often (default 8 ms, the same
as a grid’s default pull interval,
GridTuning::with_pull_interval),
so writes arriving one by one are applied and published in batches.
A published snapshot shares every page with the store, so the next
batch copies each page it writes to, about 15 µs per page of 1024
rows. Under a fast stream a batch writes to every page, and each
publish costs a copy of the whole store: publishing more often than
the grid pulls copies pages no grid reads. A shorter interval shows
writes sooner in GridWriter::snapshot and GridWriter::flush;
a longer one halves the ingest at 100k updates/s (16 ms against 8)
and delays a write on screen by up to the interval.
Sourcepub fn with_write_coalescing(self, coalescing: WriteCoalescing) -> Self
pub fn with_write_coalescing(self, coalescing: WriteCoalescing) -> Self
How writes wait for the ingest (default WriteCoalescing::ByKey:
an upsert takes the place of a waiting upsert of its key, so the
queue grows with the keys written, not with the writes).
Sourcepub fn highlight(&self) -> HighlightPolicy
pub fn highlight(&self) -> HighlightPolicy
The highlight policy.
Sourcepub fn write_coalescing(&self) -> WriteCoalescing
pub fn write_coalescing(&self) -> WriteCoalescing
How writes wait for the ingest.
Sourcepub fn publish_interval(&self) -> Duration
pub fn publish_interval(&self) -> Duration
The minimum interval between published snapshots.
Trait Implementations§
Source§impl Clone for StoreOptions
impl Clone for StoreOptions
Source§fn clone(&self) -> StoreOptions
fn clone(&self) -> StoreOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StoreOptions
impl Debug for StoreOptions
Source§impl Default for StoreOptions
impl Default for StoreOptions
impl Copy for StoreOptions
Auto Trait Implementations§
impl Freeze for StoreOptions
impl RefUnwindSafe for StoreOptions
impl Send for StoreOptions
impl Sync for StoreOptions
impl Unpin for StoreOptions
impl UnsafeUnpin for StoreOptions
impl UnwindSafe for StoreOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().