#[non_exhaustive]pub struct CallOptions {
pub triggered: bool,
pub persist: Option<bool>,
pub queue_when_offline: Option<bool>,
}Expand description
Per-call overrides.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.triggered: boolThe CSMS asked for this message (TriggerMessage, GetBaseReport, …), so the boot
gate does not apply to it (B02.FR.02).
persist: Option<bool>Override whether the message is queued durably. Defaults to “yes for transaction-related messages”.
queue_when_offline: Option<bool>Override whether the message survives a disconnection. Defaults to the
OfflinePolicy.
Implementations§
Source§impl CallOptions
impl CallOptions
Sourcepub const fn persist(self, persist: bool) -> Self
pub const fn persist(self, persist: bool) -> Self
Overrides whether the call is written to the durable MessageStore.
Sourcepub const fn queue_when_offline(self, queue: bool) -> Self
pub const fn queue_when_offline(self, queue: bool) -> Self
Overrides whether the call waits out a disconnection instead of failing.
Trait Implementations§
Source§impl Clone for CallOptions
impl Clone for CallOptions
impl Copy for CallOptions
Source§impl Debug for CallOptions
impl Debug for CallOptions
Source§impl Default for CallOptions
impl Default for CallOptions
impl Eq for CallOptions
Source§impl PartialEq for CallOptions
impl PartialEq for CallOptions
impl StructuralPartialEq for CallOptions
Auto Trait Implementations§
impl Forget for CallOptions
impl Freeze for CallOptions
impl RefUnwindSafe for CallOptions
impl Send for CallOptions
impl Sync for CallOptions
impl Unpin for CallOptions
impl UnsafeUnpin for CallOptions
impl UnwindSafe for CallOptions
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