pub struct LabelledScope<G> {
label: String,
inner: G,
}Expand description
A wrapper around a timely Scope that that sets its name as a profiling label before
scheduling its child operators.
Fields§
§label: StringLabel value to set when an operator is scheduled.
inner: GThe inner scope.
Implementations§
Trait Implementations§
Source§impl<G: AsWorker> AsWorker for LabelledScope<G>
impl<G: AsWorker> AsWorker for LabelledScope<G>
Source§fn config(&self) -> &WorkerConfig
fn config(&self) -> &WorkerConfig
Source§fn allocate<T: Exchangeable>(
&mut self,
identifier: usize,
address: Rc<[usize]>,
) -> (Vec<Box<dyn Push<T>>>, Box<dyn Pull<T>>)
fn allocate<T: Exchangeable>( &mut self, identifier: usize, address: Rc<[usize]>, ) -> (Vec<Box<dyn Push<T>>>, Box<dyn Pull<T>>)
Source§fn pipeline<T: 'static>(
&mut self,
identifier: usize,
address: Rc<[usize]>,
) -> (ThreadPusher<T>, ThreadPuller<T>)
fn pipeline<T: 'static>( &mut self, identifier: usize, address: Rc<[usize]>, ) -> (ThreadPusher<T>, ThreadPuller<T>)
Source§fn broadcast<T: Exchangeable + Clone>(
&mut self,
identifier: usize,
address: Rc<[usize]>,
) -> (Box<dyn Push<T>>, Box<dyn Pull<T>>)
fn broadcast<T: Exchangeable + Clone>( &mut self, identifier: usize, address: Rc<[usize]>, ) -> (Box<dyn Push<T>>, Box<dyn Pull<T>>)
Source§fn new_identifier(&mut self) -> usize
fn new_identifier(&mut self) -> usize
Source§fn peek_identifier(&self) -> usize
fn peek_identifier(&self) -> usize
Source§fn log_register(&self) -> Option<RefMut<'_, Registry>>
fn log_register(&self) -> Option<RefMut<'_, Registry>>
Source§fn logger_for<CB: ContainerBuilder>(&self, name: &str) -> Option<Logger<CB>>
fn logger_for<CB: ContainerBuilder>(&self, name: &str) -> Option<Logger<CB>>
Source§fn logging(&self) -> Option<TimelyLogger>
fn logging(&self) -> Option<TimelyLogger>
Source§impl<G: Clone> Clone for LabelledScope<G>
impl<G: Clone> Clone for LabelledScope<G>
Source§fn clone(&self) -> LabelledScope<G>
fn clone(&self) -> LabelledScope<G>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<G: Scheduler> Scheduler for LabelledScope<G>
impl<G: Scheduler> Scheduler for LabelledScope<G>
Source§fn activations(&self) -> Rc<RefCell<Activations>>
fn activations(&self) -> Rc<RefCell<Activations>>
Source§fn activator_for(&self, path: Rc<[usize]>) -> Activator
fn activator_for(&self, path: Rc<[usize]>) -> Activator
Activator tied to the specified operator address.Source§fn sync_activator_for(&self, path: Vec<usize>) -> SyncActivator
fn sync_activator_for(&self, path: Vec<usize>) -> SyncActivator
SyncActivator tied to the specified operator address.Source§impl<'a, G, T> Scope for LabelledScope<Child<'a, G, T>>
impl<'a, G, T> Scope for LabelledScope<Child<'a, G, T>>
Source§fn addr(&self) -> Rc<[usize]>
fn addr(&self) -> Rc<[usize]>
Source§fn addr_for_child(&self, index: usize) -> Rc<[usize]>
fn addr_for_child(&self, index: usize) -> Rc<[usize]>
index.Source§fn add_edge(&self, source: Source, target: Target)
fn add_edge(&self, source: Source, target: Target)
Source§fn allocate_operator_index(&mut self) -> usize
fn allocate_operator_index(&mut self) -> usize
Source§fn add_operator_with_indices(
&mut self,
operator: Box<dyn Operate<Self::Timestamp>>,
local: usize,
global: usize,
)
fn add_operator_with_indices( &mut self, operator: Box<dyn Operate<Self::Timestamp>>, local: usize, global: usize, )
Operate to the builder’s scope using supplied indices. Read moreSource§fn scoped<T2, R, F>(&mut self, name: &str, func: F) -> R
fn scoped<T2, R, F>(&mut self, name: &str, func: F) -> R
Source§fn add_operator(&mut self, operator: Box<dyn Operate<Self::Timestamp>>) -> usize
fn add_operator(&mut self, operator: Box<dyn Operate<Self::Timestamp>>) -> usize
Operate to the builder’s scope. Returns the new child’s index.Source§fn add_operator_with_index(
&mut self,
operator: Box<dyn Operate<Self::Timestamp>>,
index: usize,
)
fn add_operator_with_index( &mut self, operator: Box<dyn Operate<Self::Timestamp>>, index: usize, )
Operate to the builder’s scope using a supplied index. Read moreSource§fn iterative<T, R, F>(&mut self, func: F) -> R
fn iterative<T, R, F>(&mut self, func: F) -> R
Source§impl<G: ScopeParent> ScopeParent for LabelledScope<G>
impl<G: ScopeParent> ScopeParent for LabelledScope<G>
Source§type Timestamp = <G as ScopeParent>::Timestamp
type Timestamp = <G as ScopeParent>::Timestamp
Auto Trait Implementations§
impl<G> Freeze for LabelledScope<G>where
G: Freeze,
impl<G> RefUnwindSafe for LabelledScope<G>where
G: RefUnwindSafe,
impl<G> Send for LabelledScope<G>where
G: Send,
impl<G> Sync for LabelledScope<G>where
G: Sync,
impl<G> Unpin for LabelledScope<G>where
G: Unpin,
impl<G> UnwindSafe for LabelledScope<G>where
G: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<G, C> Concatenate<G, C> for G
impl<G, C> Concatenate<G, C> for G
Source§fn concatenate<I>(&self, sources: I) -> StreamCore<G, C>where
I: IntoIterator<Item = StreamCore<G, C>>,
fn concatenate<I>(&self, sources: I) -> StreamCore<G, C>where
I: IntoIterator<Item = StreamCore<G, C>>,
Source§impl<G, C> ConcatenateFlatten<G, C> for G
impl<G, C> ConcatenateFlatten<G, C> for G
Source§fn concatenate_flatten<I, CB>(
&self,
sources: I,
) -> StreamCore<G, <CB as ContainerBuilder>::Container>where
I: IntoIterator<Item = StreamCore<G, C>>,
CB: ContainerBuilder + for<'a> PushInto<<C as DrainContainer>::Item<'a>>,
fn concatenate_flatten<I, CB>(
&self,
sources: I,
) -> StreamCore<G, <CB as ContainerBuilder>::Container>where
I: IntoIterator<Item = StreamCore<G, C>>,
CB: ContainerBuilder + for<'a> PushInto<<C as DrainContainer>::Item<'a>>,
Source§impl<G> Feedback<G> for Gwhere
G: Scope,
impl<G> Feedback<G> for Gwhere
G: Scope,
Source§fn feedback<C>(
&mut self,
summary: <<G as ScopeParent>::Timestamp as Timestamp>::Summary,
) -> (Handle<G, C>, StreamCore<G, C>)where
C: Container,
fn feedback<C>(
&mut self,
summary: <<G as ScopeParent>::Timestamp as Timestamp>::Summary,
) -> (Handle<G, C>, StreamCore<G, C>)where
C: Container,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<S> ScopeExt for Swhere
S: Scope + ScopeParent,
impl<S> ScopeExt for Swhere
S: Scope + ScopeParent,
fn with_label(&mut self) -> LabelledScope<S>
Source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
std::ops::AddAssign, for types that do not implement AddAssign.Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Source§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
Source§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
Source§impl<G> UnorderedInput<G> for Gwhere
G: Scope,
impl<G> UnorderedInput<G> for Gwhere
G: Scope,
Source§fn new_unordered_input<CB>(
&mut self,
) -> ((UnorderedHandle<<G as ScopeParent>::Timestamp, CB>, ActivateCapability<<G as ScopeParent>::Timestamp>), StreamCore<G, <CB as ContainerBuilder>::Container>)where
CB: ContainerBuilder,
fn new_unordered_input<CB>(
&mut self,
) -> ((UnorderedHandle<<G as ScopeParent>::Timestamp, CB>, ActivateCapability<<G as ScopeParent>::Timestamp>), StreamCore<G, <CB as ContainerBuilder>::Container>)where
CB: ContainerBuilder,
Source§impl<G> UnorderedInput<G> for Gwhere
G: Scope,
impl<G> UnorderedInput<G> for Gwhere
G: Scope,
Source§fn new_unordered_input<D>(
&mut self,
) -> ((UnorderedHandle<<G as ScopeParent>::Timestamp, CapacityContainerBuilder<Vec<D>>>, ActivateCapability<<G as ScopeParent>::Timestamp>), StreamCore<G, Vec<D>>)where
D: Data,
fn new_unordered_input<D>(
&mut self,
) -> ((UnorderedHandle<<G as ScopeParent>::Timestamp, CapacityContainerBuilder<Vec<D>>>, ActivateCapability<<G as ScopeParent>::Timestamp>), StreamCore<G, Vec<D>>)where
D: Data,
Stream and Handle through which to supply input. This
input supports multiple open epochs (timestamps) at the same time. Read more