Struct timely::dataflow::channels::pushers::buffer::Session

source ·
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, CB, P> Session<'a, T, CB, P>
where T: Eq + Clone + 'a, CB: ContainerBuilder + 'a, P: Push<Bundle<T, CB::Container>> + 'a,

source

pub fn give_container(&mut self, container: &mut CB::Container)

Provide a container at the time specified by the Session.

source

pub fn builder(&self) -> &CB

Access the builder. Immutable access to prevent races with flushing the underlying buffer.

source§

impl<'a, T, CB, P: Push<Bundle<T, CB::Container>> + 'a> Session<'a, T, CB, P>
where T: Eq + Clone + 'a, CB: ContainerBuilder + 'a, CB::Container: SizableContainer,

source

pub fn give<D>(&mut self, data: D)
where CB::Container: PushInto<D>,

Provides one record at the time specified by the Session.

source

pub fn give_iterator<I>(&mut self, iter: I)
where I: Iterator, CB::Container: PushInto<I::Item>,

Provides an iterator of records at the time specified by the Session.

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>
where CB: Send, P: Send, T: Send,

§

impl<'a, T, CB, P> Sync for Session<'a, T, CB, P>
where CB: Sync, P: Sync, T: Sync,

§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.