pub struct AttachOptions {
pub skip_cached_replay: bool,
}Expand description
D270 — AttachOptions { skip_cached_replay } (memo:Re P2 parity).
Mirrors TS ReactiveLogBundle.attach(upstream, opts?): when
skip_cached_replay = true AND the upstream has a cached value
(Core::cache_of(upstream) non-sentinel), drop the FIRST DATA-
bearing batch the attach sink receives — i.e. the subscribe-
handshake replay. Subsequent live emissions still land. A cold
upstream’s first live emit is NOT dropped (the cache_of check
gates the suppression). The flag has no effect when the upstream’s
cache is sentinel (no replay to skip).
Fields§
§skip_cached_replay: boolTrait Implementations§
Source§impl Clone for AttachOptions
impl Clone for AttachOptions
Source§fn clone(&self) -> AttachOptions
fn clone(&self) -> AttachOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttachOptions
impl Debug for AttachOptions
Source§impl Default for AttachOptions
impl Default for AttachOptions
Source§fn default() -> AttachOptions
fn default() -> AttachOptions
Returns the “default value” for a type. Read more
impl Copy for AttachOptions
Auto Trait Implementations§
impl Freeze for AttachOptions
impl RefUnwindSafe for AttachOptions
impl Send for AttachOptions
impl Sync for AttachOptions
impl Unpin for AttachOptions
impl UnsafeUnpin for AttachOptions
impl UnwindSafe for AttachOptions
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