pub struct EdgeCondition(/* private fields */);Expand description
A condition controlling whether a connection between two components is active.
Implementations§
Source§impl EdgeCondition
impl EdgeCondition
Sourcepub fn fixed(active: bool) -> Self
pub fn fixed(active: bool) -> Self
Creates a condition that never changes.
A connection with a condition of false is removed when the topology is built.
Sourcepub fn dynamic<S>(initial: bool, updates: S) -> Self
pub fn dynamic<S>(initial: bool, updates: S) -> Self
Creates a condition that starts as initial and changes to each value yielded by updates.
If updates ends, the condition keeps its last value.
Sourcepub fn from_watch(rx: Receiver<bool>) -> Self
pub fn from_watch(rx: Receiver<bool>) -> Self
Creates a condition that follows the value of a watch channel.
If the sender is dropped, the condition keeps its last value.
Auto Trait Implementations§
impl Freeze for EdgeCondition
impl !RefUnwindSafe for EdgeCondition
impl Send for EdgeCondition
impl !Sync for EdgeCondition
impl Unpin for EdgeCondition
impl UnsafeUnpin for EdgeCondition
impl !UnwindSafe for EdgeCondition
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
Mutably borrows from an owned value. Read more
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Track for T
impl<T> Track for T
§fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
Instruments this type by attaching the given resource group token, returning a
Tracked wrapper. Read more§fn in_current_resource_group(self) -> Tracked<Self>
fn in_current_resource_group(self) -> Tracked<Self>
Instruments this type by attaching the current resource group, returning a
Tracked wrapper. Read more