pub struct Sentry { /* private fields */ }Expand description
A Tauri plugin that is also a Sentry integration.
Add a clone to the Sentry ClientOptions before sentry::init and
pass the original to tauri::Builder::plugin.
Implementations§
Trait Implementations§
Source§impl Integration for Sentry
impl Integration for Sentry
Source§fn process_event(
&self,
event: Event<'static>,
_options: &ClientOptions,
) -> Option<Event<'static>>
fn process_event( &self, event: Event<'static>, _options: &ClientOptions, ) -> Option<Event<'static>>
The Integrations Event Processor Hook. Read more
Source§fn setup(&self, options: &mut ClientOptions)
fn setup(&self, options: &mut ClientOptions)
Called whenever the integration is attached to a Client.
Source§impl<R: Runtime> Plugin<R> for Sentry
impl<R: Runtime> Plugin<R> for Sentry
Source§fn initialize(
&mut self,
app: &AppHandle<R>,
_config: Value,
) -> Result<(), Box<dyn Error>>
fn initialize( &mut self, app: &AppHandle<R>, _config: Value, ) -> Result<(), Box<dyn Error>>
Initializes the plugin.
Source§fn initialization_script(&self) -> Option<String>
fn initialization_script(&self) -> Option<String>
Add the provided JavaScript to a list of scripts that should be run after the global object has been created,
but before the HTML document has been parsed and before any other script included by the HTML document is run. Read more
Source§fn extend_api(&mut self, invoke: Invoke<R>) -> bool
fn extend_api(&mut self, invoke: Invoke<R>) -> bool
Extend commands to
crate::Builder::invoke_handler.Source§fn window_created(&mut self, window: Window<R>)
fn window_created(&mut self, window: Window<R>)
Callback invoked when the window is created.
Source§fn webview_created(&mut self, webview: Webview<R>)
fn webview_created(&mut self, webview: Webview<R>)
Callback invoked when the webview is created.
Callback invoked when webview tries to navigate to the given Url. Returning false cancels navigation.
Source§fn on_page_load(&mut self, webview: &Webview<R>, payload: &PageLoadPayload<'_>)
fn on_page_load(&mut self, webview: &Webview<R>, payload: &PageLoadPayload<'_>)
Callback invoked when the webview performs a navigation to a page.
Source§fn on_event(&mut self, app: &AppHandle<R>, event: &RunEvent)
fn on_event(&mut self, app: &AppHandle<R>, event: &RunEvent)
Callback invoked when the event loop receives a new event.
Source§fn initialization_script_2(&self) -> Option<InitializationScript>
fn initialization_script_2(&self) -> Option<InitializationScript>
Same as
Plugin::initialization_script but returns an InitializationScript instead
We plan to replace Plugin::initialization_script with this signature in v3Auto Trait Implementations§
impl Freeze for Sentry
impl RefUnwindSafe for Sentry
impl Send for Sentry
impl Sync for Sentry
impl Unpin for Sentry
impl UnsafeUnpin for Sentry
impl UnwindSafe for Sentry
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