Struct xpcom::interfaces::mozIStorageStatementCallback
[−]
[src]
#[repr(C)]pub struct mozIStorageStatementCallback { /* fields omitted */ }
interface mozIStorageStatementCallback : nsISupports
Methods
impl mozIStorageStatementCallback
[src]
pub fn coerce<T: mozIStorageStatementCallbackCoerce>(&self) -> &T
[src]
Cast this mozIStorageStatementCallback
to one of its base interfaces.
impl mozIStorageStatementCallback
[src]
pub const REASON_FINISHED: i64
REASON_FINISHED: i64 = 0
/**
* Called when the statement has finished executing. This function will only
* be called once for any given asynchronous statement.
*
* @param aReason
* Indicates if the statement is no longer executing because it either
* finished (REASON_FINISHED), was canceled (REASON_CANCELED), or
* a fatal error occurred (REASON_ERROR).
*/
pub const REASON_CANCELED: i64
REASON_CANCELED: i64 = 1
pub const REASON_ERROR: i64
REASON_ERROR: i64 = 2
pub unsafe fn HandleResult(
&self,
aResultSet: *const mozIStorageResultSet
) -> nsresult
[src]
&self,
aResultSet: *const mozIStorageResultSet
) -> nsresult
/**
* Called when some result is obtained from the database. This function can
* be called more than once with a different storageIResultSet each time for
* any given asynchronous statement.
*
* @param aResultSet
* The result set containing the data from the database.
*/
void handleResult (in mozIStorageResultSet aResultSet);
pub unsafe fn HandleError(&self, aError: *const mozIStorageError) -> nsresult
[src]
/**
* Called when some error occurs while executing the statement. This function
* may be called more than once with a different storageIError each time for
* any given asynchronous statement.
*
* @param aError
* An object containing information about the error.
*/
void handleError (in mozIStorageError aError);
pub unsafe fn HandleCompletion(&self, aReason: uint16_t) -> nsresult
[src]
void handleCompletion (in unsigned short aReason);
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 mozIStorageStatementCallback
[src]
const IID: nsIID
IID: nsIID = nsID(691551488, 55492, 19933, [159, 139, 194, 254, 176, 242, 252, 250])
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 mozIStorageStatementCallback
[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 mozIStorageStatementCallback
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.