Struct xpcom::interfaces::nsIDeprecationWarner
[−]
[src]
#[repr(C)]pub struct nsIDeprecationWarner { /* fields omitted */ }
interface nsIDeprecationWarner : nsISupports
/**
* Interface for warning about deprecated operations. Consumers should
* attach this interface to the channel's notification callbacks/loadgroup.
*/
Methods
impl nsIDeprecationWarner
[src]
pub fn coerce<T: nsIDeprecationWarnerCoerce>(&self) -> &T
[src]
Cast this nsIDeprecationWarner
to one of its base interfaces.
impl nsIDeprecationWarner
[src]
pub unsafe fn IssueWarning(
&self,
aWarning: uint32_t,
aAsError: bool
) -> nsresult
[src]
&self,
aWarning: uint32_t,
aAsError: bool
) -> nsresult
/**
* Issue a deprecation warning.
*
* @param aWarning a warning code as declared in nsDeprecatedOperationList.h.
* @param aAsError optional boolean flag indicating whether the warning
* should be treated as an error.
*/
void issueWarning (in uint32_t aWarning, [optional] in bool aAsError);
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 nsIDeprecationWarner
[src]
const IID: nsIID
IID: nsIID = nsID(1717326116, 11346, 16826, [174, 114, 35, 147, 248, 231, 108, 37])
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 nsIDeprecationWarner
[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 nsIDeprecationWarner
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.