pub struct BugReporter { /* private fields */ }Expand description
The dialog that turns what the recorder has into a BugReport.
The film is taken when the dialog opens, so it does not show the report being written. The person watches it, can leave it out, and can cover or cut parts of it in the editor before sending. They can also draw a box around the problem, which names what is under it and lights it in the film, and everything else that goes along is listed before they send. Where the report goes is up to the app.
Implementations§
Source§impl BugReporter
impl BugReporter
Sourcepub fn new(
recorder: FlightRecorder,
on_send: impl Fn(BugReport) + 'static,
) -> Self
pub fn new( recorder: FlightRecorder, on_send: impl Fn(BugReport) + 'static, ) -> Self
A reporter over what recorder keeps; on_send gets the finished report.
Sourcepub fn details(
self,
details: impl Fn() -> Vec<(String, String)> + 'static,
) -> Self
pub fn details( self, details: impl Fn() -> Vec<(String, String)> + 'static, ) -> Self
What the app adds to every report, such as its version.
Trait Implementations§
Source§impl Clone for BugReporter
impl Clone for BugReporter
Source§fn clone(&self) -> BugReporter
fn clone(&self) -> BugReporter
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 BugReporter
impl Debug for BugReporter
Auto Trait Implementations§
impl !RefUnwindSafe for BugReporter
impl !Send for BugReporter
impl !Sync for BugReporter
impl !UnwindSafe for BugReporter
impl Freeze for BugReporter
impl Unpin for BugReporter
impl UnsafeUnpin for BugReporter
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> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<V> ViewExt for Vwhere
V: View,
impl<V> ViewExt for Vwhere
V: View,
Source§fn padding(self, padding: impl Into<Insets>) -> Styled<Self>
fn padding(self, padding: impl Into<Insets>) -> Styled<Self>
Adds padding inside the box, in logical pixels.
Source§fn background(self, fill: impl Into<Fill>) -> Styled<Self>
fn background(self, fill: impl Into<Fill>) -> Styled<Self>
Paints a background behind the content.
Source§fn frame(self, width: Option<f32>, height: Option<f32>) -> Styled<Self>
fn frame(self, width: Option<f32>, height: Option<f32>) -> Styled<Self>
Fixes the width and/or height in logical pixels;
None keeps the content size.