pub struct ConfigBuilder { /* private fields */ }Expand description
Config builder for fluent API
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn topic_filter(self, filter: impl Into<String>) -> Self
pub fn topic_filter(self, filter: impl Into<String>) -> Self
Set topic filter (supports wildcards: “State/”, “”)
Sourcepub fn retention_count(self, count: usize) -> Self
pub fn retention_count(self, count: usize) -> Self
Set retention count (maximum samples per topic)
Sourcepub fn retention_time_secs(self, secs: u64) -> Self
pub fn retention_time_secs(self, secs: u64) -> Self
Set retention time in seconds (0 = infinite)
Sourcepub fn retention_size_bytes(self, bytes: u64) -> Self
pub fn retention_size_bytes(self, bytes: u64) -> Self
Set retention size in bytes (0 = infinite)
Sourcepub fn participant_name(self, name: impl Into<String>) -> Self
pub fn participant_name(self, name: impl Into<String>) -> Self
Set participant name
Sourcepub fn subscribe_volatile(self, subscribe: bool) -> Self
pub fn subscribe_volatile(self, subscribe: bool) -> Self
Subscribe to volatile writers (default: false)
Trait Implementations§
Source§impl Debug for ConfigBuilder
impl Debug for ConfigBuilder
Source§impl Default for ConfigBuilder
impl Default for ConfigBuilder
Source§fn default() -> ConfigBuilder
fn default() -> ConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnsafeUnpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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