pub struct SubscribeOptions {
pub after: u64,
pub types: Vec<String>,
pub reconnect: Duration,
}Expand description
Where a subscription starts and what it reads, for crate::Kernable::subscribe:
SubscribeOptions { after: last_seen, types: vec!["shop.*".into()], ..Default::default() }.
Fields§
§after: u64Global position of the last event already handled; 0: from the beginning.
types: Vec<String>Qualified event types (orders.OrderPlaced) or domains (orders.*); empty: all the key
may read.
reconnect: DurationDelay before reconnecting after the stream drops or the handler fails (default 1 s); twice as long after each further failed attempt, at most 30 s.
Trait Implementations§
Source§impl Clone for SubscribeOptions
impl Clone for SubscribeOptions
Source§impl Debug for SubscribeOptions
impl Debug for SubscribeOptions
Source§impl Default for SubscribeOptions
impl Default for SubscribeOptions
Source§fn default() -> SubscribeOptions
fn default() -> SubscribeOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for SubscribeOptions
impl Freeze for SubscribeOptions
impl Move for SubscribeOptions
impl RefUnwindSafe for SubscribeOptions
impl Send for SubscribeOptionswhere
RawVecInner: Send,
impl Sync for SubscribeOptionswhere
RawVecInner: Sync,
impl Unpin for SubscribeOptions
impl UnsafeUnpin for SubscribeOptions
impl UnwindSafe for SubscribeOptionswhere
RawVecInner: UnwindSafe,
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