Struct xpcom::interfaces::nsINotificationStorageCallback
[−]
[src]
#[repr(C)]pub struct nsINotificationStorageCallback { /* fields omitted */ }
interface nsINotificationStorageCallback : nsISupports
Methods
impl nsINotificationStorageCallback
[src]
pub fn coerce<T: nsINotificationStorageCallbackCoerce>(&self) -> &T
[src]
Cast this nsINotificationStorageCallback
to one of its base interfaces.
impl nsINotificationStorageCallback
[src]
pub unsafe fn Handle(
&self,
id: &nsAString,
title: &nsAString,
dir: &nsAString,
lang: &nsAString,
body: &nsAString,
tag: &nsAString,
icon: &nsAString,
data: &nsAString,
behavior: &nsAString,
serviceWorkerRegistrationScope: &nsAString
) -> nsresult
[src]
&self,
id: &nsAString,
title: &nsAString,
dir: &nsAString,
lang: &nsAString,
body: &nsAString,
tag: &nsAString,
icon: &nsAString,
data: &nsAString,
behavior: &nsAString,
serviceWorkerRegistrationScope: &nsAString
) -> nsresult
/**
* Callback function used to pass single notification back
* into C++ land for Notification.get return data.
*
* @param id: a uuid for this notification
* @param title: the notification title
* @param dir: the notification direction,
* possible values are "ltr", "rtl", "auto"
* @param lang: the notification language
* @param body: the notification body
* @param tag: the notification tag
*/
void handle (in DOMString id, in DOMString title, in DOMString dir, in DOMString lang, in DOMString body, in DOMString tag, in DOMString icon, in DOMString data, in DOMString behavior, in DOMString serviceWorkerRegistrationScope);
pub unsafe fn Done(&self) -> nsresult
[src]
/**
* Callback function used to notify C++ the we have returned
* all notification objects for this Notification.get call.
*/
void done ();
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 nsINotificationStorageCallback
[src]
const IID: nsIID
IID: nsIID = nsID(3244433970, 9628, 17328, [181, 46, 137, 195, 157, 205, 151, 150])
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 nsINotificationStorageCallback
[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 nsINotificationStorageCallback
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.