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]
pub fn coerce<T: nsIObserverCoerce>(&self) -> &T
[src]
Cast this nsIObserver
to one of its base interfaces.
impl nsIObserver
[src]
pub unsafe fn Observe(
&self,
aSubject: *const nsISupports,
aTopic: *const c_char,
aData: *const int16_t
) -> nsresult
[src]
&self,
aSubject: *const nsISupports,
aTopic: *const c_char,
aData: *const int16_t
) -> nsresult
/**
* 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>
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 nsIObserver
[src]
const IID: nsIID
IID: nsIID = nsID(3676581377, 58585, 4562, [157, 222, 0, 0, 100, 101, 115, 116])
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 nsIObserver
[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 nsIObserver
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.