pub struct ReliableOptions {
pub segment_size: usize,
pub retention_policy: RetentionPolicy,
pub retention_period: u64,
}Expand description
Reliable dispatch strategy options.
Fields§
§segment_size: usizeSegment size in bytes.
retention_policy: RetentionPolicyRetention policy for messages in the topic.Could be retain until ack or expire.
retention_period: u64Retention period in seconds.
Implementations§
Source§impl ReliableOptions
impl ReliableOptions
pub fn new( segment_size: usize, retention_policy: RetentionPolicy, retention_period: u64, ) -> Self
Trait Implementations§
Source§impl Clone for ReliableOptions
impl Clone for ReliableOptions
Source§fn clone(&self) -> ReliableOptions
fn clone(&self) -> ReliableOptions
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 ReliableOptions
impl Debug for ReliableOptions
Source§impl<'de> Deserialize<'de> for ReliableOptions
impl<'de> Deserialize<'de> for ReliableOptions
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 ReliableOptions
impl RefUnwindSafe for ReliableOptions
impl Send for ReliableOptions
impl Sync for ReliableOptions
impl Unpin for ReliableOptions
impl UnwindSafe for ReliableOptions
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