Struct mcap::write::WriteOptions
source · pub struct WriteOptions { /* private fields */ }
Implementations§
source§impl WriteOptions
impl WriteOptions
pub fn new() -> Self
sourcepub fn compression(self, compression: Option<Compression>) -> Self
pub fn compression(self, compression: Option<Compression>) -> Self
Specifies the compression that should be used on chunks.
sourcepub fn profile<S: Into<String>>(self, profile: S) -> Self
pub fn profile<S: Into<String>>(self, profile: S) -> Self
specifies the profile that should be written to the MCAP Header record.
sourcepub fn chunk_size(self, chunk_size: Option<u64>) -> Self
pub fn chunk_size(self, chunk_size: Option<u64>) -> Self
specifies the target uncompressed size of each chunk.
Messages will be written to chunks until the uncompressed chunk is larger than the
target chunk size, at which point the chunk will be closed and a new one started.
If None
, chunks will not be automatically closed and the user must call flush()
to
begin a new chunk.
Trait Implementations§
source§impl Clone for WriteOptions
impl Clone for WriteOptions
source§fn clone(&self) -> WriteOptions
fn clone(&self) -> WriteOptions
Returns a copy of the value. Read more
1.0.0 · 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 WriteOptions
impl Debug for WriteOptions
Auto Trait Implementations§
impl RefUnwindSafe for WriteOptions
impl Send for WriteOptions
impl Sync for WriteOptions
impl Unpin for WriteOptions
impl UnwindSafe for WriteOptions
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