pub struct ActiveComputeController<'a, T> {
    compute: &'a mut ComputeController<T>,
    storage: &'a mut dyn StorageController<Timestamp = T>,
}
Expand description

A wrapper around a ComputeController with a live connection to a storage controller.

Fields§

§compute: &'a mut ComputeController<T>§storage: &'a mut dyn StorageController<Timestamp = T>

Implementations§

Return a read-only handle to the indicated collection.

Return a handle to the indicated compute instance.

Adds replicas of an instance.

Removes a replica from an instance, including its service in the orchestrator.

Create and maintain the described dataflows, and initialize state for their output.

This method creates dataflows whose inputs are still readable at the dataflow as_of frontier, and initializes the outputs as readable from that frontier onward. It installs read dependencies from the outputs to the inputs, so that the input read capabilities will be held back to the output read capabilities, ensuring that we are always able to return to a state that can serve the output read capabilities.

Drop the read capability for the given collections and allow their resources to be reclaimed.

Initiate a peek request for the contents of the given collection at timestamp.

Cancel existing peek requests.

Canceling a peek is best effort. The caller may see any of the following after canceling a peek request:

  • A PeekResponse::Rows indicating that the cancellation request did not take effect in time and the query succeeded.

  • A PeekResponse::Canceled affirming that the peek was canceled.

  • No PeekResponse at all.

Assign a read policy to specific identifiers.

The policies are assigned in the order presented, and repeated identifiers should conclude with the last policy. Changing a policy will immediately downgrade the read capability if appropriate, but it will not “recover” the read capability if the prior capability is already ahead of it.

Identifiers not present in policies retain their existing read policies.

Processes the work queued by ComputeController::ready.

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.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Wrap the input message T in a tonic::Request
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more