pub enum FeedbackEffect {
Review,
Submit,
Retry,
Redact {
key: String,
start: usize,
end: usize,
},
RemoveScreenshot,
}Variants§
Review
Inspect exactly what will leave this device.
Submit
Approve the displayed review and durably queue it.
Retry
Retry the immutable report and read its durable delivery status.
Redact
Hide a span in the already-masked review.
RemoveScreenshot
Remove the screenshot from the review.
Implementations§
Source§impl FeedbackEffect
impl FeedbackEffect
Sourcepub const REVIEW: ActionRef<FeedbackEffect, ()>
pub const REVIEW: ActionRef<FeedbackEffect, ()>
Bind a control to the review effect: Inspect exactly what will leave this device.
Sourcepub const SUBMIT: ActionRef<FeedbackEffect, ()>
pub const SUBMIT: ActionRef<FeedbackEffect, ()>
Bind a control to the submit effect: Approve the displayed review and durably queue it.
Sourcepub const RETRY: ActionRef<FeedbackEffect, ()>
pub const RETRY: ActionRef<FeedbackEffect, ()>
Bind a control to the retry effect: Retry the immutable report and read its durable delivery status.
Sourcepub const REDACT: ActionRef<FeedbackEffect, (String, usize, usize)>
pub const REDACT: ActionRef<FeedbackEffect, (String, usize, usize)>
Bind a control to the redact effect: Hide a span in the already-masked review.
Sourcepub const REMOVE_SCREENSHOT: ActionRef<FeedbackEffect, ()>
pub const REMOVE_SCREENSHOT: ActionRef<FeedbackEffect, ()>
Bind a control to the remove-screenshot effect: Remove the screenshot from the review.
Trait Implementations§
Source§impl Clone for FeedbackEffect
impl Clone for FeedbackEffect
Source§fn clone(&self) -> FeedbackEffect
fn clone(&self) -> FeedbackEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FeedbackEffect
impl Debug for FeedbackEffect
Source§impl Effect for FeedbackEffect
impl Effect for FeedbackEffect
Source§const OPERATION: &'static str = "feedback.compose"
const OPERATION: &'static str = "feedback.compose"
The operation type every effect of the vocabulary travels under:
unique per vocabulary, like a resource’s kind.
Source§fn declarations() -> Vec<EffectDecl>
fn declarations() -> Vec<EffectDecl>
One declaration per effect, in order.
Source§fn declaration(id: &str) -> Option<EffectDecl>
fn declaration(id: &str) -> Option<EffectDecl>
The declaration of the effect
id, built alone: what binding one
effect to an item reads, so offering it on many items costs one
declaration each, not the whole vocabulary.Source§fn arguments(&self) -> Map<String, Value>
fn arguments(&self) -> Map<String, Value>
This effect’s arguments, named as its declaration’s parameters.
§fn specs() -> Vec<ActionSpec>
fn specs() -> Vec<ActionSpec>
The published action of every effect offered on the resource: all
but the
row ones, which are offered only bound.§fn bound(&self) -> ActionSpec
fn bound(&self) -> ActionSpec
This effect with its arguments as one action that takes none: what a
published child or a live row offers (open this snippet, stop
this process), answered by the vocabulary’s handler like any other
invocation of the effect, under the same contract as its
declaration.
§fn bound_asking(&self, asking: &[&str]) -> ActionSpec
fn bound_asking(&self, asking: &[&str]) -> ActionSpec
This effect bound to the item it acts on, as
bound,
still asking its caller for the arguments named in asking: rename
this file, to a name the caller gives. The bound arguments are this
effect’s own; an asked one the caller supplies replaces it.§fn bound_asking_params(&self, params: Vec<ActionParam>) -> ActionSpec
fn bound_asking_params(&self, params: Vec<ActionParam>) -> ActionSpec
bound_asking with the asked parameters given
whole, narrowed for this item: the applications that can open this
file as the choices of app.§fn item_specs(field: &str, item: &Id) -> Vec<ActionSpec>
fn item_specs(field: &str, item: &Id) -> Vec<ActionSpec>
The effects offered on the item
item of the collection field
(#[effect(item = field)]), each with its first parameter bound to
the item and the rest still asked.Auto Trait Implementations§
impl Freeze for FeedbackEffect
impl RefUnwindSafe for FeedbackEffect
impl Send for FeedbackEffect
impl Sync for FeedbackEffect
impl Unpin for FeedbackEffect
impl UnsafeUnpin for FeedbackEffect
impl UnwindSafe for FeedbackEffect
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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