pub struct EffectStatus { /* private fields */ }Expand description
What an effect, or one of the resource’s own actions, looks like to callers right now, when it differs from its declaration: unavailable while the engine is offline, labelled “Stop recording” while recording.
Implementations§
Source§impl EffectStatus
impl EffectStatus
effect cannot be invoked now: code names why for programs,
reason for people.
Sourcepub fn described<E, A>(
effect: ActionRef<E, A>,
description: impl Into<String>,
) -> Self
pub fn described<E, A>( effect: ActionRef<E, A>, description: impl Into<String>, ) -> Self
effect says of itself what description says on this entity, and is
offered as declared otherwise.
Sourcepub fn of_kind<E, A>(effect: ActionRef<E, A>, kind: ActionKind) -> Self
pub fn of_kind<E, A>(effect: ActionRef<E, A>, kind: ActionKind) -> Self
effect is kind on this entity, offered as declared otherwise.
Sourcepub fn labelled<E, A>(effect: ActionRef<E, A>, label: impl Into<String>) -> Self
pub fn labelled<E, A>(effect: ActionRef<E, A>, label: impl Into<String>) -> Self
effect is offered as label now.
Sourcepub fn with_param_choices<P, V>(
self,
param: P,
choices: impl IntoIterator<Item = V>,
) -> Self
pub fn with_param_choices<P, V>( self, param: P, choices: impl IntoIterator<Item = V>, ) -> Self
The effect’s parameter param accepts choices on this entity: the
apps that open this file, the devices nearby now.
Sourcepub fn with_labelled_param_choices<P, V, L>(
self,
param: P,
choices: impl IntoIterator<Item = (V, L)>,
) -> Self
pub fn with_labelled_param_choices<P, V, L>( self, param: P, choices: impl IntoIterator<Item = (V, L)>, ) -> Self
Self::with_param_choices, each choice with the words it reads by:
a nearby device’s handle reads as the device’s name.
Sourcepub fn with_param_description<P: Into<String>>(
self,
param: P,
description: impl Into<String>,
) -> Self
pub fn with_param_description<P: Into<String>>( self, param: P, description: impl Into<String>, ) -> Self
The effect’s parameter param means description on this entity.
Sourcepub fn with_param_schema<P: Into<String>>(self, param: P, schema: Value) -> Self
pub fn with_param_schema<P: Into<String>>(self, param: P, schema: Value) -> Self
The effect’s parameter param is bounded by schema on this entity.
Sourcepub fn on(self, item: impl Into<String>) -> Self
pub fn on(self, item: impl Into<String>) -> Self
This status is about the item or row published as item rather than
the resource its view publishes: the effect is offered as the status
says on that entity’s published actions alone (a process that is a
system service cannot be ended), served by
a publisher’s row status.
Sourcepub fn with_label(self, label: impl Into<String>) -> Self
pub fn with_label(self, label: impl Into<String>) -> Self
Offer the effect as label too.
Sourcepub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
Say what the effect does on this entity right now, in the entity’s own words: what erasing this drive loses.
Sourcepub fn with_phrase(self, phrase: impl Into<String>) -> Self
pub fn with_phrase(self, phrase: impl Into<String>) -> Self
Have the caller type phrase to confirm this invocation on this
entity: the name of what it erases.
Sourcepub fn availability(&self) -> Option<&Availability>
pub fn availability(&self) -> Option<&Availability>
How the effect stands now, when the status narrows it.
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
What the effect says of itself on this entity, when the status says.
Sourcepub fn phrase(&self) -> Option<&str>
pub fn phrase(&self) -> Option<&str>
What its caller types to confirm it on this entity, when the status asks for one.
Sourcepub fn item(&self) -> Option<&str>
pub fn item(&self) -> Option<&str>
The item or row this status is about, when it is about one rather than the published resource.
Sourcepub fn overlay(&self, spec: &mut ActionSpec)
pub fn overlay(&self, spec: &mut ActionSpec)
Show spec as this status says it is right now.
Trait Implementations§
Source§impl Clone for EffectStatus
impl Clone for EffectStatus
Source§impl Debug for EffectStatus
impl Debug for EffectStatus
Source§impl PartialEq for EffectStatus
impl PartialEq for EffectStatus
impl StructuralPartialEq for EffectStatus
Auto Trait Implementations§
impl Forget for EffectStatus
impl Freeze for EffectStatus
impl Move for EffectStatus
impl RefUnwindSafe for EffectStatus
impl Send for EffectStatus
impl Sync for EffectStatus
impl Unpin for EffectStatus
impl UnsafeUnpin for EffectStatus
impl UnwindSafe for EffectStatus
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<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 more