Struct xpcom::interfaces::nsIObserver [] [src]

#[repr(C)]
pub struct nsIObserver { /* fields omitted */ }

interface nsIObserver : nsISupports

/**
 * This interface is implemented by an object that wants
 * to observe an event corresponding to a topic.
 */

Methods

impl nsIObserver
[src]

[src]

Cast this nsIObserver to one of its base interfaces.

impl nsIObserver
[src]

[src]

/**
    * Observe will be called when there is a notification for the
    * topic |aTopic|.  This assumes that the object implementing
    * this interface has been registered with an observer service
    * such as the nsIObserverService.
    *
    * If you expect multiple topics/subjects, the impl is
    * responsible for filtering.
    *
    * You should not modify, add, remove, or enumerate
    * notifications in the implemention of observe.
    *
    * @param aSubject : Notification specific interface pointer.
    * @param aTopic   : The notification topic or subject.
    * @param aData    : Notification specific wide string.
    *                    subject event.
    */

void observe (in nsISupports aSubject, in string aTopic, in wstring aData);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIObserver
[src]

IID: nsIID = nsID(3676581377, 58585, 4562, [157, 222, 0, 0, 100, 101, 115, 116])

[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 nsIObserver
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIObserver
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.