Struct xpcom::interfaces::nsIDebug2
[−]
[src]
#[repr(C)]pub struct nsIDebug2 { /* fields omitted */ }
interface nsIDebug2 : nsISupports
/**
* For use by consumers in scripted languages (JavaScript, Java, Python,
* Perl, ...).
*
* @note C/C++ consumers who are planning to use the nsIDebug2 interface with
* the "@mozilla.org/xpcom;1" contract should use NS_DebugBreak from xpcom
* glue instead.
*
*/
Methods
impl nsIDebug2
[src]
pub fn coerce<T: nsIDebug2Coerce>(&self) -> &T
[src]
Cast this nsIDebug2
to one of its base interfaces.
impl nsIDebug2
[src]
pub unsafe fn GetIsDebugBuild(&self, aIsDebugBuild: *mut bool) -> nsresult
[src]
/**
* Whether XPCOM was compiled with DEBUG defined. This often
* correlates to whether other code (e.g., Firefox, XULRunner) was
* compiled with DEBUG defined.
*/
readonly attribute boolean isDebugBuild;
pub unsafe fn GetAssertionCount(
&self,
aAssertionCount: *mut int32_t
) -> nsresult
[src]
&self,
aAssertionCount: *mut int32_t
) -> nsresult
/**
* The number of assertions since process start.
*/
readonly attribute long assertionCount;
pub unsafe fn GetIsDebuggerAttached(
&self,
aIsDebuggerAttached: *mut bool
) -> nsresult
[src]
&self,
aIsDebuggerAttached: *mut bool
) -> nsresult
/**
* Whether a debugger is currently attached.
* Supports Windows + Mac
*/
readonly attribute bool isDebuggerAttached;
pub unsafe fn Assertion(
&self,
aStr: *const c_char,
aExpr: *const c_char,
aFile: *const c_char,
aLine: int32_t
) -> nsresult
[src]
&self,
aStr: *const c_char,
aExpr: *const c_char,
aFile: *const c_char,
aLine: int32_t
) -> nsresult
/**
* Show an assertion and trigger nsIDebug2.break().
*
* @param aStr assertion message
* @param aExpr expression that failed
* @param aFile file containing assertion
* @param aLine line number of assertion
*/
void assertion (in string aStr, in string aExpr, in string aFile, in long aLine);
pub unsafe fn Warning(
&self,
aStr: *const c_char,
aFile: *const c_char,
aLine: int32_t
) -> nsresult
[src]
&self,
aStr: *const c_char,
aFile: *const c_char,
aLine: int32_t
) -> nsresult
/**
* Show a warning.
*
* @param aStr warning message
* @param aFile file containing assertion
* @param aLine line number of assertion
*/
void warning (in string aStr, in string aFile, in long aLine);
pub unsafe fn Break(&self, aFile: *const c_char, aLine: int32_t) -> nsresult
[src]
/**
* Request to break into a debugger.
*
* @param aFile file containing break request
* @param aLine line number of break request
*/
void break (in string aFile, in long aLine);
pub unsafe fn Abort(&self, aFile: *const c_char, aLine: int32_t) -> nsresult
[src]
/**
* Request the process to trigger a fatal abort.
*
* @param aFile file containing abort request
* @param aLine line number of abort request
*/
void abort (in string aFile, in long aLine);
pub unsafe fn RustPanic(&self, aMessage: *const c_char) -> nsresult
[src]
/**
* Request the process to trigger a fatal panic!() from Rust code.
*
* @param aMessage the string to pass to panic!().
*/
void rustPanic (in string aMessage);
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 nsIDebug2
[src]
const IID: nsIID
IID: nsIID = nsID(2520898581, 4347, 17123, [162, 133, 24, 190, 144, 165, 193, 11])
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 nsIDebug2
[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 nsIDebug2
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.