Struct timely::dataflow::operators::generic::OutputHandle [−][src]
Handle to an operator’s output stream.
Implementations
impl<'a, T: Timestamp, D, P: Push<Bundle<T, D>>> OutputHandle<'a, T, D, P>
[src]
pub fn session<'b, C: CapabilityTrait<T>>(
&'b mut self,
cap: &'b C
) -> Session<'b, T, D, PushCounter<T, D, P>> where
'a: 'b,
[src]
&'b mut self,
cap: &'b C
) -> Session<'b, T, D, PushCounter<T, D, P>> where
'a: 'b,
Obtains a session that can send data at the timestamp associated with capability cap
.
In order to send data at a future timestamp, obtain a capability for the new timestamp first, as show in the example.
Examples
use timely::dataflow::operators::ToStream; use timely::dataflow::operators::generic::Operator; use timely::dataflow::channels::pact::Pipeline; timely::example(|scope| { (0..10).to_stream(scope) .unary(Pipeline, "example", |_cap, _info| |input, output| { input.for_each(|cap, data| { let time = cap.time().clone() + 1; output.session(&cap.delayed(&time)) .give_vec(&mut data.replace(Vec::new())); }); }); });
Trait Implementations
Auto Trait Implementations
impl<'a, T, D, P> !RefUnwindSafe for OutputHandle<'a, T, D, P>
impl<'a, T, D, P> !Send for OutputHandle<'a, T, D, P>
impl<'a, T, D, P> !Sync for OutputHandle<'a, T, D, P>
impl<'a, T, D, P> Unpin for OutputHandle<'a, T, D, P>
impl<'a, T, D, P> !UnwindSafe for OutputHandle<'a, T, D, P>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,