pub struct CrashpadConfigBuilder { /* private fields */ }
Expand description
Builder for CrashpadConfig
Implementations§
Source§impl CrashpadConfigBuilder
impl CrashpadConfigBuilder
Sourcepub fn handler_path<P: AsRef<Path>>(self, path: P) -> Self
pub fn handler_path<P: AsRef<Path>>(self, path: P) -> Self
Set the handler path
Sourcepub fn database_path<P: AsRef<Path>>(self, path: P) -> Self
pub fn database_path<P: AsRef<Path>>(self, path: P) -> Self
Set the database path
Sourcepub fn metrics_path<P: AsRef<Path>>(self, path: P) -> Self
pub fn metrics_path<P: AsRef<Path>>(self, path: P) -> Self
Set the metrics path
Sourcepub fn rate_limit(self, enabled: bool) -> Self
pub fn rate_limit(self, enabled: bool) -> Self
Sourcepub fn upload_gzip(self, enabled: bool) -> Self
pub fn upload_gzip(self, enabled: bool) -> Self
Sourcepub fn periodic_tasks(self, enabled: bool) -> Self
pub fn periodic_tasks(self, enabled: bool) -> Self
Sourcepub fn identify_client_via_url(self, enabled: bool) -> Self
pub fn identify_client_via_url(self, enabled: bool) -> Self
Sourcepub fn handler_argument<S: Into<String>>(self, arg: S) -> Self
pub fn handler_argument<S: Into<String>>(self, arg: S) -> Self
Sourcepub fn handler_arguments<I, S>(self, args: I) -> Self
pub fn handler_arguments<I, S>(self, args: I) -> Self
Sourcepub fn build(self) -> CrashpadConfig
pub fn build(self) -> CrashpadConfig
Build the configuration
Trait Implementations§
Source§impl Default for CrashpadConfigBuilder
impl Default for CrashpadConfigBuilder
Source§fn default() -> CrashpadConfigBuilder
fn default() -> CrashpadConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CrashpadConfigBuilder
impl RefUnwindSafe for CrashpadConfigBuilder
impl Send for CrashpadConfigBuilder
impl Sync for CrashpadConfigBuilder
impl Unpin for CrashpadConfigBuilder
impl UnwindSafe for CrashpadConfigBuilder
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