Trait winsafe::prelude::kernel_Htransaction
source · pub trait kernel_Htransaction: Handle {
// Provided methods
fn CommitTransaction(&self) -> SysResult<()> { ... }
fn CreateTransaction(
transaction_attributes: Option<&SECURITY_ATTRIBUTES<'_>>,
options: Option<TRANSACTION_OPT>,
timeout: Option<u32>,
description: &str
) -> SysResult<CloseHandleGuard<HTRANSACTION>> { ... }
fn GetTransactionId(&self) -> SysResult<GUID> { ... }
fn OpenTransaction(
desired_access: TRANSACTION,
transaction_id: &GUID
) -> SysResult<CloseHandleGuard<HTRANSACTION>> { ... }
fn RollbackTransaction(&self) -> SysResult<()> { ... }
}
Available on crate feature
kernel
only.Expand description
This trait is enabled with the kernel
feature, and provides methods for
HTRANSACTION
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
sourcefn CommitTransaction(&self) -> SysResult<()>
fn CommitTransaction(&self) -> SysResult<()>
CommitTransaction
function.
sourcefn CreateTransaction(
transaction_attributes: Option<&SECURITY_ATTRIBUTES<'_>>,
options: Option<TRANSACTION_OPT>,
timeout: Option<u32>,
description: &str
) -> SysResult<CloseHandleGuard<HTRANSACTION>>
fn CreateTransaction( transaction_attributes: Option<&SECURITY_ATTRIBUTES<'_>>, options: Option<TRANSACTION_OPT>, timeout: Option<u32>, description: &str ) -> SysResult<CloseHandleGuard<HTRANSACTION>>
CreateTransaction
function.
sourcefn GetTransactionId(&self) -> SysResult<GUID>
fn GetTransactionId(&self) -> SysResult<GUID>
GetTransactionId
function.
sourcefn OpenTransaction(
desired_access: TRANSACTION,
transaction_id: &GUID
) -> SysResult<CloseHandleGuard<HTRANSACTION>>
fn OpenTransaction( desired_access: TRANSACTION, transaction_id: &GUID ) -> SysResult<CloseHandleGuard<HTRANSACTION>>
OpenTransaction
function.
sourcefn RollbackTransaction(&self) -> SysResult<()>
fn RollbackTransaction(&self) -> SysResult<()>
RollbackTransaction
function.
Object Safety§
This trait is not object safe.