pub enum FeedbackEffect {
Review,
Submit,
Retry,
Redact {
key: String,
start: usize,
end: usize,
},
RemoveScreenshot,
RemoveRecording,
Toggle {
index: usize,
},
}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.
RemoveRecording
Leave the recording out of the review.
Toggle
Show a span the review hid, or hide it again.
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.
Sourcepub const REMOVE_RECORDING: ActionRef<FeedbackEffect, ()>
pub const REMOVE_RECORDING: ActionRef<FeedbackEffect, ()>
Bind a control to the remove-recording effect: Leave the recording out of the review.
Sourcepub const TOGGLE: ActionRef<FeedbackEffect, usize>
pub const TOGGLE: ActionRef<FeedbackEffect, usize>
Bind a control to the toggle effect: Show a span the review hid, or hide it again.
Trait Implementations§
Source§impl Clone for FeedbackEffect
impl Clone for FeedbackEffect
Source§fn clone(&self) -> FeedbackEffect
fn clone(&self) -> FeedbackEffect
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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"
Source§const APP_ID: &'static str = tilo_resource::kind::DEFAULT_APP
const APP_ID: &'static str = tilo_resource::kind::DEFAULT_APP
Source§fn declarations() -> Vec<EffectDecl>
fn declarations() -> Vec<EffectDecl>
Source§fn declaration(id: &str) -> Option<EffectDecl>
fn declaration(id: &str) -> Option<EffectDecl>
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>
Source§fn decode(
id: &str,
arguments: &Map<String, Value>,
) -> Result<Self, EffectDecodeError>
fn decode( id: &str, arguments: &Map<String, Value>, ) -> Result<Self, EffectDecodeError>
id with arguments, as a caller invoked it.§const LABEL: &'static str = Self::OPERATION
const LABEL: &'static str = Self::OPERATION
§fn confirmation_phrase(&self) -> Option<String>
fn confirmation_phrase(&self) -> Option<String>
phrase: the name of what it erases.§fn kind() -> ResourceKind
fn kind() -> ResourceKind
§fn key(&self) -> ActionKey
fn key(&self) -> ActionKey
§fn spec(id: &str) -> Option<ActionSpec>
fn spec(id: &str) -> Option<ActionSpec>
id declares: what a control binding it reads, so binding one
effect costs one declaration rather than the vocabulary’s.§fn specs() -> Vec<ActionSpec>
fn specs() -> Vec<ActionSpec>
row ones, which are offered only bound.§fn bound(&self) -> ActionSpec
fn bound(&self) -> ActionSpec
§fn bound_asking(&self, asking: &[&str]) -> ActionSpec
fn bound_asking(&self, asking: &[&str]) -> ActionSpec
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>
item of the collection field
(#[effect(item = field)]), each with its first parameter bound to
the item and the rest still asked.§fn address_on(&self, resource: impl Into<String>) -> ActionAddress
fn address_on(&self, resource: impl Into<String>) -> ActionAddress
resource offers it (the
record, or a child or live row it is bound on, by its published id):
what a search hit invokes or a caller addresses through the host’s
door. Its id comes from the effect itself.§fn from_payload(payload: &[u8]) -> Result<Self, EffectDecodeError>
fn from_payload(payload: &[u8]) -> Result<Self, EffectDecodeError>
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
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>
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>
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)
&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)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§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>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn 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>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which 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)
&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)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§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>
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