Struct xpcom::interfaces::nsIScriptLoaderObserver
[−]
[src]
#[repr(C)]pub struct nsIScriptLoaderObserver { /* fields omitted */ }
interface nsIScriptLoaderObserver : nsISupports
Methods
impl nsIScriptLoaderObserver
[src]
pub fn coerce<T: nsIScriptLoaderObserverCoerce>(&self) -> &T
[src]
Cast this nsIScriptLoaderObserver
to one of its base interfaces.
impl nsIScriptLoaderObserver
[src]
pub unsafe fn ScriptAvailable(
&self,
aResult: nsresult,
aElement: *const nsIScriptElement,
aIsInlineClassicScript: bool,
aURI: *const nsIURI,
aLineNo: int32_t
) -> nsresult
[src]
&self,
aResult: nsresult,
aElement: *const nsIScriptElement,
aIsInlineClassicScript: bool,
aURI: *const nsIURI,
aLineNo: int32_t
) -> nsresult
/**
* The script is available for evaluation. For inline scripts, this
* method will be called synchronously. For externally loaded scripts,
* this method will be called when the load completes.
*
* @param aResult A result code representing the result of loading
* a script. If this is a failure code, script evaluation
* will not occur.
* @param aElement The element being processed.
* @param aIsInline Is this an inline classic script (as opposed to an
* externally loaded classic script or module script)?
* @param aURI What is the URI of the script (the document URI if
* it is inline).
* @param aLineNo At what line does the script appear (generally 1
* if it is a loaded script).
*/
void scriptAvailable (in nsresult aResult, in nsIScriptElement aElement, in boolean aIsInlineClassicScript, in nsIURI aURI, in int32_t aLineNo);
pub unsafe fn ScriptEvaluated(
&self,
aResult: nsresult,
aElement: *const nsIScriptElement,
aIsInline: bool
) -> nsresult
[src]
&self,
aResult: nsresult,
aElement: *const nsIScriptElement,
aIsInline: bool
) -> nsresult
/**
* The script has been evaluated.
*
* @param aResult A result code representing the success or failure of
* the script evaluation.
* @param aElement The element being processed.
* @param aIsInline Is this an inline script or externally loaded?
*/
void scriptEvaluated (in nsresult aResult, in nsIScriptElement aElement, in boolean aIsInline);
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 nsIScriptLoaderObserver
[src]
const IID: nsIID
IID: nsIID = nsID(2071491076, 30459, 18276, [150, 241, 251, 122, 102, 109, 180, 244])
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 nsIScriptLoaderObserver
[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 nsIScriptLoaderObserver
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.