pub struct Session<'a, T, CB, P> { /* private fields */ }
Expand description
An output session for sending records at a specified time.
The Session
struct provides the user-facing interface to an operator output, namely
the Buffer
type. A Session
wraps a session of output at a specified time, and
avoids what would otherwise be a constant cost of checking timestamp equality.
Implementations§
source§impl<'a, T, C: Container + Data, P> Session<'a, T, CapacityContainerBuilder<C>, P>
impl<'a, T, C: Container + Data, P> Session<'a, T, CapacityContainerBuilder<C>, P>
sourcepub fn give_container(&mut self, container: &mut C)
pub fn give_container(&mut self, container: &mut C)
Provide a container at the time specified by the Session.
source§impl<'a, T, CB, P> Session<'a, T, CB, P>
impl<'a, T, CB, P> Session<'a, T, CB, P>
sourcepub fn builder(&self) -> &CB
pub fn builder(&self) -> &CB
Access the builder. Immutable access to prevent races with flushing the underlying buffer.
sourcepub fn give<D>(&mut self, data: D)where
CB: PushInto<D>,
pub fn give<D>(&mut self, data: D)where
CB: PushInto<D>,
Provides one record at the time specified by the Session
.
sourcepub fn give_iterator<I>(&mut self, iter: I)
pub fn give_iterator<I>(&mut self, iter: I)
Provides an iterator of records at the time specified by the Session
.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, CB, P> Freeze for Session<'a, T, CB, P>
impl<'a, T, CB, P> RefUnwindSafe for Session<'a, T, CB, P>
impl<'a, T, CB, P> Send for Session<'a, T, CB, P>
impl<'a, T, CB, P> Sync for Session<'a, T, CB, P>
impl<'a, T, CB, P> Unpin for Session<'a, T, CB, P>
impl<'a, T, CB, P> !UnwindSafe for Session<'a, T, CB, P>
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