pub struct BeginCode(/* private fields */);Expand description
The result of calling begin.
Implementations§
Source§impl BeginCode
impl BeginCode
Sourcepub fn is_started(&self) -> bool
pub fn is_started(&self) -> bool
Returns true if the BeginCode represents a successfully started transaction.
Sourcepub fn is_explicit_abort(&self) -> bool
pub fn is_explicit_abort(&self) -> bool
Returns true if the BeginCode represents a transaction that was explicitly aborted.
Sourcepub fn is_conflict(&self) -> bool
pub fn is_conflict(&self) -> bool
Returns true if the transaction aborted due to a memory conflict.
Sourcepub fn is_capacity(&self) -> bool
pub fn is_capacity(&self) -> bool
Returns true if the transaction aborted due to running out of capacity.
Hardware transactions are typically bounded by L1 cache sizes.
Trait Implementations§
Source§impl Ord for BeginCode
impl Ord for BeginCode
Source§impl PartialOrd for BeginCode
impl PartialOrd for BeginCode
impl Copy for BeginCode
impl Eq for BeginCode
impl StructuralPartialEq for BeginCode
Auto Trait Implementations§
impl Freeze for BeginCode
impl RefUnwindSafe for BeginCode
impl Send for BeginCode
impl Sync for BeginCode
impl Unpin for BeginCode
impl UnwindSafe for BeginCode
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