pub struct Config {
pub topic_filter: String,
pub retention_count: usize,
pub retention_time_secs: u64,
pub retention_size_bytes: u64,
pub domain_id: u32,
pub participant_name: String,
pub subscribe_volatile: bool,
}Expand description
Persistence service configuration
Fields§
§topic_filter: StringTopic filter (supports wildcards: “State/”, “”)
retention_count: usizeRetention policy: maximum number of samples to keep per topic
retention_time_secs: u64Retention policy: maximum age of samples in seconds (0 = infinite)
retention_size_bytes: u64Retention policy: maximum total storage size in bytes (0 = infinite)
domain_id: u32Domain ID to join
participant_name: StringParticipant name
subscribe_volatile: boolSubscribe to volatile writers (default: false, only TRANSIENT_LOCAL)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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