Struct xpcom::interfaces::nsISubstitutionObserver
[−]
[src]
#[repr(C)]pub struct nsISubstitutionObserver { /* fields omitted */ }
interface nsISubstitutionObserver : nsISupports
/**
* An observer of substitutions being set or unset on a
* SubstitutingProtocolHandler. Useful for receiving asynchronous notification
* in a child process after a substitution has been set in the parent process
* and is propagated to the child.
*/
Methods
impl nsISubstitutionObserver
[src]
pub fn coerce<T: nsISubstitutionObserverCoerce>(&self) -> &T
[src]
Cast this nsISubstitutionObserver
to one of its base interfaces.
impl nsISubstitutionObserver
[src]
pub unsafe fn OnSetSubstitution(
&self,
aRoot: &nsACString,
aBaseURI: *const nsIURI
) -> nsresult
[src]
&self,
aRoot: &nsACString,
aBaseURI: *const nsIURI
) -> nsresult
/**
* To be called when a substition has been set or unset on a protocol
* handler. Unset operations are identified by a null URI argument.
*
* @param aRoot the root key of the mapping
* @param aBaseURI the base URI to be substituted for the root key by the
* protocol handler. For notifications triggered by unset
* operations (i.e., when is a substitution is removed from the
* protocol handler) this argument is null.
*/
void onSetSubstitution (in ACString aRoot, in nsIURI aBaseURI);
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 nsISubstitutionObserver
[src]
const IID: nsIID
IID: nsIID = nsID(1227657618, 14339, 20011, [131, 115, 210, 95, 229, 95, 85, 136])
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 nsISubstitutionObserver
[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 nsISubstitutionObserver
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.