pub struct CaskWriterConfigBuilder { /* private fields */ }Expand description
Helper to create CaskWriterConfig
Implementations§
Source§impl CaskWriterConfigBuilder
impl CaskWriterConfigBuilder
Sourcepub fn with_filename(self, filename: &str) -> Self
pub fn with_filename(self, filename: &str) -> Self
Specifies the filename
Sourcepub fn with_timestamp_filename(self, id: &str) -> Self
pub fn with_timestamp_filename(self, id: &str) -> Self
Sets the filename based on an identifier and the current timestamp
Sourcepub fn with_channel(self, channel: CaskChannel) -> Self
pub fn with_channel(self, channel: CaskChannel) -> Self
Enables a channel to be recorded into this cask
Sourcepub fn with_channels<'a, I: IntoIterator<Item = CaskChannel>>(
self,
channels: I,
) -> Self
pub fn with_channels<'a, I: IntoIterator<Item = CaskChannel>>( self, channels: I, ) -> Self
Enables multiple channels to be recorded into this cask
Sourcepub fn without_channel(self, topic: &str) -> Self
pub fn without_channel(self, topic: &str) -> Self
Disables a previously enabled channel to not be recorded
Trait Implementations§
Source§impl Default for CaskWriterConfigBuilder
impl Default for CaskWriterConfigBuilder
Source§fn default() -> CaskWriterConfigBuilder
fn default() -> CaskWriterConfigBuilder
Returns the “default value” for a type. Read more
Source§impl From<CaskWriterConfigBuilder> for CaskWriterConfig
impl From<CaskWriterConfigBuilder> for CaskWriterConfig
Source§fn from(builder: CaskWriterConfigBuilder) -> Self
fn from(builder: CaskWriterConfigBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CaskWriterConfigBuilder
impl RefUnwindSafe for CaskWriterConfigBuilder
impl Send for CaskWriterConfigBuilder
impl Sync for CaskWriterConfigBuilder
impl Unpin for CaskWriterConfigBuilder
impl UnwindSafe for CaskWriterConfigBuilder
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