pub struct TxGate { /* private fields */ }Expand description
Fixed reader-permit pool. Read-only autocommit statements take one permit; writers, sync operations, and explicit transactions take the entire pool. Tokio’s fair semaphore queue prevents a waiting writer from being starved by later readers.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TxGate
impl RefUnwindSafe for TxGate
impl Send for TxGate
impl Sync for TxGate
impl Unpin for TxGate
impl UnsafeUnpin for TxGate
impl UnwindSafe for TxGate
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