Struct xpcom::interfaces::nsIErrorService
[−]
[src]
#[repr(C)]pub struct nsIErrorService { /* fields omitted */ }
interface nsIErrorService : nsISupports
/**
* nsIErrorService: This is an interim service that allows nsresult codes to be mapped to
* string bundles that can be used to look up error messages. String bundle keys can also
* be mapped.
*
* This service will eventually get replaced by extending xpidl to allow errors to be defined.
* (http://bugzilla.mozilla.org/show_bug.cgi?id=13423).
*/
Methods
impl nsIErrorService
[src]
pub fn coerce<T: nsIErrorServiceCoerce>(&self) -> &T
[src]
Cast this nsIErrorService
to one of its base interfaces.
impl nsIErrorService
[src]
pub unsafe fn RegisterErrorStringBundle(
&self,
errorModule: int16_t,
stringBundleURL: *const c_char
) -> nsresult
[src]
&self,
errorModule: int16_t,
stringBundleURL: *const c_char
) -> nsresult
/**
* Registers a string bundle URL for an error module. Error modules are obtained from
* nsresult code with NS_ERROR_GET_MODULE.
*/
void registerErrorStringBundle (in short errorModule, in string stringBundleURL);
pub unsafe fn UnregisterErrorStringBundle(
&self,
errorModule: int16_t
) -> nsresult
[src]
&self,
errorModule: int16_t
) -> nsresult
/**
* Unregisters a string bundle URL for an error module.
*/
void unregisterErrorStringBundle (in short errorModule);
pub unsafe fn GetErrorStringBundle(
&self,
errorModule: int16_t,
_retval: *mut *const c_char
) -> nsresult
[src]
&self,
errorModule: int16_t,
_retval: *mut *const c_char
) -> nsresult
/**
* Retrieves a string bundle URL for an error module.
*/
string getErrorStringBundle (in short errorModule);
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 nsIErrorService
[src]
const IID: nsIID
IID: nsIID = nsID(2950820240, 41922, 4579, [165, 226, 8, 0, 32, 12, 154, 102])
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 nsIErrorService
[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 nsIErrorService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.