[][src]Struct timely::dataflow::operators::CapabilityRef

pub struct CapabilityRef<'cap, T: Timestamp + 'cap> { /* fields omitted */ }

An unowned capability, which can be used but not retained.

The capability reference supplies a retain(self) method which consumes the reference and turns it into an owned capability

Methods

impl<'cap, T: Timestamp + 'cap> CapabilityRef<'cap, T>[src]

pub fn time(&self) -> &T[src]

The timestamp associated with this capability.

pub fn delayed(&self, new_time: &T) -> Capability<T>[src]

Makes a new capability for a timestamp new_time greater or equal to the timestamp of the source capability (self).

This method panics if self.time is not less or equal to new_time.

pub fn delayed_for_output(
    &self,
    new_time: &T,
    output_port: usize
) -> Capability<T>
[src]

Delays capability for a specific output port.

pub fn retain(self) -> Capability<T>[src]

Transform to an owned capability.

This method produces an owned capability which must be dropped to release the capability. Users should take care that these capabilities are only stored for as long as they are required, as failing to drop them may result in livelock.

pub fn retain_for_output(self, output_port: usize) -> Capability<T>[src]

Transforms to an owned capability for a specific output port.

Trait Implementations

impl<'cap, T: Timestamp> Deref for CapabilityRef<'cap, T>[src]

type Target = T

The resulting type after dereferencing.

impl<'cap, T: Timestamp> Debug for CapabilityRef<'cap, T>[src]

Auto Trait Implementations

impl<'cap, T> !Send for CapabilityRef<'cap, T>

impl<'cap, T> Unpin for CapabilityRef<'cap, T>

impl<'cap, T> !Sync for CapabilityRef<'cap, T>

impl<'cap, T> !UnwindSafe for CapabilityRef<'cap, T>

impl<'cap, T> !RefUnwindSafe for CapabilityRef<'cap, T>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]