pub struct ShipConfig {
pub dump_compression_level: i32,
pub attachment_compression: bool,
}Expand description
Offline crash spool shipping API. Offline crash spool shipping API. Offline crash spool shipping API. Configuration knobs for crash-dump upload compression.
Created with ShipConfig::default and customised with the builder
methods. The defaults compress dumps at zstd level 19 and also
compress text-ish attachments.
Fields§
§dump_compression_level: i32Zstd level used for the dump part. Valid range is 1..=22.
Defaults to DEFAULT_COMPRESSION_LEVEL (19).
attachment_compression: boolWhen true, text-ish attachments are compressed with zstd before
upload. Defaults to true.
Implementations§
Source§impl ShipConfig
impl ShipConfig
Sourcepub fn with_dump_compression_level(self, level: i32) -> Self
pub fn with_dump_compression_level(self, level: i32) -> Self
Sets the zstd compression level for the dump part.
Sourcepub fn with_attachment_compression(self, enabled: bool) -> Self
pub fn with_attachment_compression(self, enabled: bool) -> Self
Enables or disables zstd compression for text-ish attachment parts.
Trait Implementations§
Source§impl Clone for ShipConfig
impl Clone for ShipConfig
Source§impl Debug for ShipConfig
impl Debug for ShipConfig
Auto Trait Implementations§
impl Freeze for ShipConfig
impl RefUnwindSafe for ShipConfig
impl Send for ShipConfig
impl Sync for ShipConfig
impl Unpin for ShipConfig
impl UnsafeUnpin for ShipConfig
impl UnwindSafe for ShipConfig
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request