pub struct AboutPlugin { /* private fields */ }Expand description
Help > About application, about.read for agents, and
help.report and help.suggest when the info says where issues go.
Implementations§
Source§impl AboutPlugin
impl AboutPlugin
pub fn new(info: AppInfo) -> Self
Sourcepub fn alias(
self,
prefix: &str,
matches: impl Fn(&str) -> bool + 'static,
) -> Self
pub fn alias( self, prefix: &str, matches: impl Fn(&str) -> bool + 'static, ) -> Self
Ids a report replaces by aliases (photo-1, photo-2…, numbered
in order of appearance across the report): every token (a run of
letters and digits) of its journal and context for which
matches says yes. For ids that are fingerprints, such as a
file’s content hash.
Sourcepub fn journal(self, config: RecorderConfig) -> Self
pub fn journal(self, config: RecorderConfig) -> Self
Records the journal for reports: the last minutes of it (5 by
default), redacted, kinds the configuration skips left out;
help.report then shows it before the issue opens.
Sourcepub fn context(
self,
name: &str,
f: impl Fn(&AppHandle) -> Json + 'static,
) -> Self
pub fn context( self, name: &str, f: impl Fn(&AppHandle) -> Json + 'static, ) -> Self
A part of the application’s context a report attaches, under
name (library, layout, settings), read when the report is
made; redacted like the journal. The application keeps names,
paths and ids out of it: the redaction is a safety net.
Sourcepub fn idea_form(self, file: &str) -> Self
pub fn idea_form(self, file: &str) -> Self
The repository’s issue form for ideas help.suggest fills
(feature.yml, in .github/ISSUE_TEMPLATE/), its page field
named report::FIELD_PAGE; without it, the idea goes in the
body.
Trait Implementations§
Source§impl Debug for AboutPlugin
impl Debug for AboutPlugin
Source§impl Default for AboutPlugin
impl Default for AboutPlugin
Source§fn default() -> AboutPlugin
fn default() -> AboutPlugin
Source§impl Plugin for AboutPlugin
impl Plugin for AboutPlugin
fn id(&self) -> PluginId
Source§fn title(&self) -> String
fn title(&self) -> String
Source§fn enabled(&self, _ctx: &Ctx<'_>) -> bool
fn enabled(&self, _ctx: &Ctx<'_>) -> bool
Source§fn disconnect(&mut self, _ctx: &mut Ctx<'_>)
fn disconnect(&mut self, _ctx: &mut Ctx<'_>)
Auto Trait Implementations§
impl Freeze for AboutPlugin
impl !RefUnwindSafe for AboutPlugin
impl !Send for AboutPlugin
impl !Sync for AboutPlugin
impl Unpin for AboutPlugin
impl UnsafeUnpin for AboutPlugin
impl !UnwindSafe for AboutPlugin
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
§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> 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