Struct xpcom::interfaces::nsITransaction
[−]
[src]
#[repr(C)]pub struct nsITransaction { /* fields omitted */ }
interface nsITransaction : nsISupports
Methods
impl nsITransaction
[src]
pub fn coerce<T: nsITransactionCoerce>(&self) -> &T
[src]
Cast this nsITransaction
to one of its base interfaces.
impl nsITransaction
[src]
pub unsafe fn DoTransaction(&self) -> nsresult
[src]
/**
* Executes the transaction.
*/
void doTransaction ();
pub unsafe fn UndoTransaction(&self) -> nsresult
[src]
/**
* Restores the state to what it was before the transaction was executed.
*/
void undoTransaction ();
pub unsafe fn RedoTransaction(&self) -> nsresult
[src]
/**
* Executes the transaction again. Can only be called on a transaction that
* was previously undone.
* <P>
* In most cases, the redoTransaction() method will actually call the
* doTransaction() method to execute the transaction again.
*/
void redoTransaction ();
pub unsafe fn GetIsTransient(&self, aIsTransient: *mut bool) -> nsresult
[src]
/**
* The transaction's transient state. This attribute is checked by
* the transaction manager after the transaction's Execute() method is called.
* If the transient state is false, a reference to the transaction is
* held by the transaction manager so that the transactions' undoTransaction()
* and redoTransaction() methods can be called. If the transient state is
* true, the transaction manager returns immediately after the transaction's
* doTransaction() method is called, no references to the transaction are
* maintained. Transient transactions cannot be undone or redone by the
* transaction manager.
*/
readonly attribute boolean isTransient;
pub unsafe fn Merge(
&self,
aTransaction: *const nsITransaction,
_retval: *mut bool
) -> nsresult
[src]
&self,
aTransaction: *const nsITransaction,
_retval: *mut bool
) -> nsresult
/**
* Attempts to merge a transaction into "this" transaction. Both transactions
* must be in their undo state, doTransaction() methods already called. The
* transaction manager calls this method to coalesce a new transaction with
* the transaction on the top of the undo stack.
* This method returns a boolean value that indicates the merge result.
* A true value indicates that the transactions were merged successfully,
* a false value if the merge was not possible or failed. If true,
* the transaction manager will Release() the new transacton instead of
* pushing it on the undo stack.
* @param aTransaction the previously executed transaction to merge.
*/
boolean merge (in nsITransaction aTransaction);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsITransaction
[src]
const IID: nsIID
IID: nsIID = nsID(1491284161, 31560, 4562, [152, 185, 0, 128, 95, 41, 125, 137])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsITransaction
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsITransaction
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.