Struct xpcom::interfaces::mozIStorageAggregateFunction
[−]
[src]
#[repr(C)]pub struct mozIStorageAggregateFunction { /* fields omitted */ }
interface mozIStorageAggregateFunction : nsISupports
/**
* mozIStorageAggregateFunction represents aggregate SQL function.
* Common examples of aggregate functions are SUM() and COUNT().
*
* An aggregate function calculates one result for a given set of data, where
* a set of data is a group of tuples. There can be one group
* per request or many of them, if GROUP BY clause is used or not.
*/
Methods
impl mozIStorageAggregateFunction
[src]
pub fn coerce<T: mozIStorageAggregateFunctionCoerce>(&self) -> &T
[src]
Cast this mozIStorageAggregateFunction
to one of its base interfaces.
impl mozIStorageAggregateFunction
[src]
pub unsafe fn OnStep(
&self,
aFunctionArguments: *const mozIStorageValueArray
) -> nsresult
[src]
&self,
aFunctionArguments: *const mozIStorageValueArray
) -> nsresult
/**
* onStep is called when next value should be passed to
* a custom function.
*
* @param aFunctionArguments The arguments passed in to the function
*/
void onStep (in mozIStorageValueArray aFunctionArguments);
pub unsafe fn OnFinal(&self, _retval: *mut *const nsIVariant) -> nsresult
[src]
/**
* Called when all tuples in a group have been processed and the engine
* needs the aggregate function's value.
*
* @returns aggregate result as Variant.
*/
nsIVariant onFinal ();
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 mozIStorageAggregateFunction
[src]
const IID: nsIID
IID: nsIID = nsID(1982994359, 12579, 4570, [145, 141, 0, 3, 71, 65, 46, 22])
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 mozIStorageAggregateFunction
[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 mozIStorageAggregateFunction
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.