pub struct TransactOption {
pub retry_limit: Option<u32>,
pub time_out: Option<Duration>,
pub is_idempotent: bool,
}
Expand description
A set of options that controls the behavior of Database::transact
.
Fields§
§retry_limit: Option<u32>
§time_out: Option<Duration>
§is_idempotent: bool
Implementations§
Source§impl TransactOption
impl TransactOption
Sourcepub fn idempotent() -> Self
pub fn idempotent() -> Self
An idempotent TransactOption
Trait Implementations§
Source§impl Clone for TransactOption
impl Clone for TransactOption
Source§fn clone(&self) -> TransactOption
fn clone(&self) -> TransactOption
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 Default for TransactOption
impl Default for TransactOption
Source§fn default() -> TransactOption
fn default() -> TransactOption
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransactOption
impl RefUnwindSafe for TransactOption
impl Send for TransactOption
impl Sync for TransactOption
impl Unpin for TransactOption
impl UnwindSafe for TransactOption
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