pub struct Session<'a: 'b, 'b, T: Timestamp, CB: ContainerBuilder, CT: CapabilityTrait<T>> { /* private fields */ }Expand description
An active output building session, which accepts items and builds containers.
Implementations§
Source§impl<'a: 'b, 'b, T: Timestamp, CB: ContainerBuilder, CT: CapabilityTrait<T>> Session<'a, 'b, T, CB, CT>
impl<'a: 'b, 'b, T: Timestamp, CB: ContainerBuilder, CT: CapabilityTrait<T>> Session<'a, 'b, T, CB, CT>
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.
Sourcepub fn give_container(&mut self, container: &mut CB::Container)
pub fn give_container(&mut self, container: &mut CB::Container)
Provide a container at the time specified by the Session.
Sourcepub fn give_containers<'c>(
&mut self,
containers: impl Iterator<Item = &'c mut CB::Container>,
)
pub fn give_containers<'c>( &mut self, containers: impl Iterator<Item = &'c mut CB::Container>, )
Provide multiple containers at the time specifid by the Session.
Sourcepub fn extract_and_send(&mut self)
pub fn extract_and_send(&mut self)
Extracts built containers and sends them.
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b, T, CB, CT> Freeze for Session<'a, 'b, T, CB, CT>
impl<'a, 'b, T, CB, CT> !RefUnwindSafe for Session<'a, 'b, T, CB, CT>
impl<'a, 'b, T, CB, CT> !Send for Session<'a, 'b, T, CB, CT>
impl<'a, 'b, T, CB, CT> !Sync for Session<'a, 'b, T, CB, CT>
impl<'a, 'b, T, CB, CT> Unpin for Session<'a, 'b, T, CB, CT>
impl<'a, 'b, T, CB, CT> !UnwindSafe for Session<'a, 'b, T, CB, CT>
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
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>
Converts
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>
Converts
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