Struct xpcom::interfaces::mozIStorageFunction
[−]
[src]
#[repr(C)]pub struct mozIStorageFunction { /* fields omitted */ }
interface mozIStorageFunction : nsISupports
/**
* mozIStorageFunction is to be implemented by storage consumers that
* wish to receive callbacks during the request execution.
*
* SQL can apply functions to values from tables. Examples of
* such functions are MIN(a1,a2) or SQRT(num). Many functions are
* implemented in SQL engine.
*
* This interface allows consumers to implement their own,
* problem-specific functions.
* These functions can be called from triggers, too.
*
*/
Methods
impl mozIStorageFunction
[src]
pub fn coerce<T: mozIStorageFunctionCoerce>(&self) -> &T
[src]
Cast this mozIStorageFunction
to one of its base interfaces.
impl mozIStorageFunction
[src]
pub unsafe fn OnFunctionCall(
&self,
aFunctionArguments: *const mozIStorageValueArray,
_retval: *mut *const nsIVariant
) -> nsresult
[src]
&self,
aFunctionArguments: *const mozIStorageValueArray,
_retval: *mut *const nsIVariant
) -> nsresult
/**
* onFunctionCall is called when execution of a custom
* function should occur.
*
* @param aNumArguments The number of arguments
* @param aFunctionArguments The arguments passed in to the function
*
* @returns any value as Variant type.
*/
nsIVariant onFunctionCall (in mozIStorageValueArray aFunctionArguments);
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 mozIStorageFunction
[src]
const IID: nsIID
IID: nsIID = nsID(2683315301, 8651, 18931, [185, 117, 125, 91, 56, 206, 236, 115])
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 mozIStorageFunction
[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 mozIStorageFunction
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.