Struct mz_storage::boundary::BoundaryHook
source · [−]pub struct BoundaryHook<C, T = Timestamp> {
client: C,
suppress: BTreeMap<SourceInstanceId, u64>,
requests: UnboundedReceiver<SourceInstanceRequest<T>>,
workers: u64,
sources: BTreeMap<GlobalId, (SourceDesc, CollectionMetadata)>,
pending: BTreeMap<GlobalId, Vec<SourceInstanceRequest<T>>>,
}
Expand description
A client wrapper that observes source instantiation requests and enqueues them as commands.
Fields
client: C
The wrapped client,
suppress: BTreeMap<SourceInstanceId, u64>
Source creation requests to suppress.
requests: UnboundedReceiver<SourceInstanceRequest<T>>
Enqueue source rendering requests.
workers: u64
The number of storage workers, of whom requests will be made.
sources: BTreeMap<GlobalId, (SourceDesc, CollectionMetadata)>
Created sources so that we can form render requests.
pending: BTreeMap<GlobalId, Vec<SourceInstanceRequest<T>>>
Pending render requests, awaiting source creation.
Implementations
sourceimpl<C> BoundaryHook<C>
impl<C> BoundaryHook<C>
sourcepub fn new(
client: C,
requests: UnboundedReceiver<SourceInstanceRequest>,
workers: u64
) -> Self
pub fn new(
client: C,
requests: UnboundedReceiver<SourceInstanceRequest>,
workers: u64
) -> Self
Creates a new boundary hook from parts, and the number of workers.
Trait Implementations
sourceimpl<C: Debug, T: Debug> Debug for BoundaryHook<C, T>
impl<C: Debug, T: Debug> Debug for BoundaryHook<C, T>
sourceimpl<C, T> GenericClient<StorageCommand<T>, StorageResponse<T>> for BoundaryHook<C, T> where
C: GenericClient<StorageCommand<T>, StorageResponse<T>>,
T: Debug + Clone + Send,
impl<C, T> GenericClient<StorageCommand<T>, StorageResponse<T>> for BoundaryHook<C, T> where
C: GenericClient<StorageCommand<T>, StorageResponse<T>>,
T: Debug + Clone + Send,
sourcefn send<'life0, 'async_trait>(
&'life0 mut self,
cmd: StorageCommand<T>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 mut self,
cmd: StorageCommand<T>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Sends a command to the dataflow server. Read more
Auto Trait Implementations
impl<C, T = u64> !RefUnwindSafe for BoundaryHook<C, T>
impl<C, T> Send for BoundaryHook<C, T> where
C: Send,
T: Send,
impl<C, T> Sync for BoundaryHook<C, T> where
C: Sync,
T: Send + Sync,
impl<C, T> Unpin for BoundaryHook<C, T> where
C: Unpin,
impl<C, T = u64> !UnwindSafe for BoundaryHook<C, 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<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