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

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

The timestamp associated with this capability.

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.

Delays capability for a specific output port.

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.

Transforms to an owned capability for a specific output port.

Trait Implementations

Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.