[−][src]Struct differential_dataflow::trace::wrappers::rc::TraceRc
A handle to a shared trace.
As long as the handle exists, the wrapped trace should continue to exist and will not advance its timestamps past the frontier maintained by the handle. The intent is that such a handle appears as if it is a privately maintained trace, despite being backed by shared resources.
Fields
wrapper: Rc<RefCell<TraceBox<K, V, T, R, Tr>>>
Wrapped trace. Please be gentle when using.
Methods
impl<K, V, T, R, Tr> TraceRc<K, V, T, R, Tr> where
T: Lattice + Ord + Clone + 'static,
Tr: TraceReader<K, V, T, R>,
[src]
T: Lattice + Ord + Clone + 'static,
Tr: TraceReader<K, V, T, R>,
pub fn make_from(trace: Tr) -> (Self, Rc<RefCell<TraceBox<K, V, T, R, Tr>>>)
[src]
Allocates a new handle from an existing wrapped wrapper.
Trait Implementations
impl<K, V, T, R, Tr> TraceReader<K, V, T, R> for TraceRc<K, V, T, R, Tr> where
T: Lattice + Ord + Clone + 'static,
Tr: TraceReader<K, V, T, R>,
[src]
T: Lattice + Ord + Clone + 'static,
Tr: TraceReader<K, V, T, R>,
type Batch = Tr::Batch
The type of an immutable collection of updates.
type Cursor = Tr::Cursor
The type used to enumerate the collections contents.
fn advance_by(&mut self, frontier: &[T])
[src]
Sets frontier to now be elements in frontier
.
This change may not have immediately observable effects. It informs the shared trace that this
handle no longer requires access to times other than those in the future of frontier
, but if
there are other handles to the same trace, it may not yet be able to compact.
fn advance_frontier(&mut self) -> &[T]
[src]
fn distinguish_since(&mut self, frontier: &[T])
[src]
Allows the trace to compact batches of times before frontier
.
fn distinguish_frontier(&mut self) -> &[T]
[src]
fn cursor_through(
&mut self,
frontier: &[T]
) -> Option<(Tr::Cursor, <Tr::Cursor as Cursor<K, V, T, R>>::Storage)>
[src]
&mut self,
frontier: &[T]
) -> Option<(Tr::Cursor, <Tr::Cursor as Cursor<K, V, T, R>>::Storage)>
Creates a new cursor over the wrapped trace.
fn map_batches<F: FnMut(&Self::Batch)>(&mut self, f: F)
[src]
fn cursor(
&mut self
) -> (Self::Cursor, <Self::Cursor as Cursor<Key, Val, Time, R>>::Storage)
[src]
&mut self
) -> (Self::Cursor, <Self::Cursor as Cursor<Key, Val, Time, R>>::Storage)
Provides a cursor over updates contained in the trace.
impl<K, V, T, R, Tr> Drop for TraceRc<K, V, T, R, Tr> where
T: Lattice + Ord + Clone + 'static,
Tr: TraceReader<K, V, T, R>,
[src]
T: Lattice + Ord + Clone + 'static,
Tr: TraceReader<K, V, T, R>,
impl<K, V, T: Lattice + Ord + Clone, R, Tr> Clone for TraceRc<K, V, T, R, Tr> where
Tr: TraceReader<K, V, T, R>,
[src]
Tr: TraceReader<K, V, T, R>,
Auto Trait Implementations
impl<K, V, T, R, Tr> !Send for TraceRc<K, V, T, R, Tr>
impl<K, V, T, R, Tr> !Sync for TraceRc<K, V, T, R, Tr>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Data for T where
T: 'static + Clone,
[src]
T: 'static + Clone,