Struct timely::dataflow::operators::CapabilityRef [−][src]
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
Implementations
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]
&self,
new_time: &T,
output_port: usize
) -> Capability<T>
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> Debug for CapabilityRef<'cap, T>
[src]
impl<'cap, T: Timestamp> Deref for CapabilityRef<'cap, T>
[src]
Auto Trait Implementations
impl<'cap, T> !RefUnwindSafe for CapabilityRef<'cap, T>
impl<'cap, T> !Send for CapabilityRef<'cap, T>
impl<'cap, T> !Sync for CapabilityRef<'cap, T>
impl<'cap, T> Unpin for CapabilityRef<'cap, T>
impl<'cap, T> !UnwindSafe for CapabilityRef<'cap, T>
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>,