#[repr(C)]pub struct BeginTransactionOptions<'hint> {
pub is_read_only: bool,
pub hint: Option<Ref<'hint>>,
}Expand description
FFI appropriate representation of the options available when beginning a transaction.
§C Layout
Fields§
§is_read_only: boolWhether the transaction is read-only. Defaults to false.
hint: Option<Ref<'hint>>An optional hint for the transaction. This is often useful for identifying a transaction in logs.
Trait Implementations§
Source§impl<'hint> Clone for BeginTransactionOptions<'hint>
impl<'hint> Clone for BeginTransactionOptions<'hint>
Source§fn clone(&self) -> BeginTransactionOptions<'hint>
fn clone(&self) -> BeginTransactionOptions<'hint>
Returns a duplicate 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<'hint> Debug for BeginTransactionOptions<'hint>
impl<'hint> Debug for BeginTransactionOptions<'hint>
Source§impl<'hint> Default for BeginTransactionOptions<'hint>
impl<'hint> Default for BeginTransactionOptions<'hint>
Source§fn default() -> BeginTransactionOptions<'hint>
fn default() -> BeginTransactionOptions<'hint>
Returns the “default value” for a type. Read more
Source§impl<'hint> PartialEq for BeginTransactionOptions<'hint>
impl<'hint> PartialEq for BeginTransactionOptions<'hint>
Source§fn eq(&self, other: &BeginTransactionOptions<'hint>) -> bool
fn eq(&self, other: &BeginTransactionOptions<'hint>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'hint> ReprC for BeginTransactionOptions<'hint>
impl<'hint> ReprC for BeginTransactionOptions<'hint>
impl<'hint> StructuralPartialEq for BeginTransactionOptions<'hint>
Auto Trait Implementations§
impl<'hint> Freeze for BeginTransactionOptions<'hint>
impl<'hint> RefUnwindSafe for BeginTransactionOptions<'hint>
impl<'hint> Send for BeginTransactionOptions<'hint>
impl<'hint> Sync for BeginTransactionOptions<'hint>
impl<'hint> Unpin for BeginTransactionOptions<'hint>
impl<'hint> UnwindSafe for BeginTransactionOptions<'hint>
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