Struct app_center::AppCenter[][src]

pub struct AppCenter { /* fields omitted */ }

Implementations

impl AppCenter[src]

pub fn set_report_callback<T>(&self, callback: T) where
    T: Fn(&mut AppCenterLogs<'_>) + Send + Sync + 'static, 
[src]

Install an optonal callback to be executed just before the report is sent usually this is the place to add any atachements to the report using add_binary_attachement or add_text_attachement

pub fn set_user_id<S: Into<String>>(&self, id: Option<S>)[src]

Associate the report with a specific user ID

pub fn start<S: Into<String>>(app_secret: S, app_version: &'static str) -> Self[src]

Install the custom panic hook that will attempt to upload panic stacktraces to appcenter using the provided app secret and application version. After the report is sent, the original panic hook is executed.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.