Struct mz_storage::client::controller::rehydration::RehydrationTask
source · [−]struct RehydrationTask<T> {
addr: String,
build_info: &'static BuildInfo,
command_rx: UnboundedReceiver<StorageCommand<T>>,
response_tx: UnboundedSender<StorageResponse<T>>,
ingestions: BTreeMap<GlobalId, IngestSourceCommand<T>>,
uppers: HashMap<GlobalId, (Antichain<T>, MutableAntichain<T>)>,
}Expand description
A task that manages rehydration.
Fields
addr: StringThe network address of the storage host.
build_info: &'static BuildInfoThe build information for this process.
command_rx: UnboundedReceiver<StorageCommand<T>>A channel upon which commands intended for the storage host are delivered.
response_tx: UnboundedSender<StorageResponse<T>>A channel upon which responses from the storage host are delivered.
ingestions: BTreeMap<GlobalId, IngestSourceCommand<T>>The ingestions that have been observed.
uppers: HashMap<GlobalId, (Antichain<T>, MutableAntichain<T>)>The upper frontier information received.
Implementations
sourceimpl<T> RehydrationTask<T> where
T: Timestamp + Lattice,
StorageGrpcClient: StorageClient<T>,
impl<T> RehydrationTask<T> where
T: Timestamp + Lattice,
StorageGrpcClient: StorageClient<T>,
async fn run(&mut self)
async fn step_rehydrate(&mut self) -> RehydrationTaskState
async fn step_pump(&mut self, client: StorageGrpcClient) -> RehydrationTaskState
async fn send_command(
&mut self,
client: StorageGrpcClient,
command: StorageCommand<T>
) -> RehydrationTaskState
async fn send_response(
&mut self,
client: StorageGrpcClient,
response: Result<StorageResponse<T>, Error>
) -> RehydrationTaskState
fn absorb_command(&mut self, command: &StorageCommand<T>)
fn absorb_response(
&mut self,
response: StorageResponse<T>
) -> Option<StorageResponse<T>>
Auto Trait Implementations
impl<T> !RefUnwindSafe for RehydrationTask<T>
impl<T> Send for RehydrationTask<T> where
T: Send,
impl<T> Sync for RehydrationTask<T> where
T: Send + Sync,
impl<T> Unpin for RehydrationTask<T> where
T: Unpin,
impl<T> !UnwindSafe for RehydrationTask<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> FutureExt for T
impl<T> FutureExt for T
sourcefn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
sourcefn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T in a tonic::Request
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<P, R> ProtoType<R> for P where
R: RustType<P>,
impl<P, R> ProtoType<R> for P where
R: RustType<P>,
sourcefn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See RustType::from_proto.
sourcefn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See RustType::into_proto.
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more