Struct xpcom::interfaces::nsINetworkActivityData
[−]
[src]
#[repr(C)]pub struct nsINetworkActivityData { /* fields omitted */ }
interface nsINetworkActivityData : nsISupports
/**
* Keep tracks of the bytes that are sent (tx) and received (rx)
* into a socket identified by its file descriptor (fd)
* for a given host & port.
*/
Methods
impl nsINetworkActivityData
[src]
pub fn coerce<T: nsINetworkActivityDataCoerce>(&self) -> &T
[src]
Cast this nsINetworkActivityData
to one of its base interfaces.
impl nsINetworkActivityData
[src]
pub unsafe fn GetHost(&self, aHost: &mut nsAString) -> nsresult
[src]
readonly attribute DOMString host;
pub unsafe fn GetPort(&self, aPort: *mut int32_t) -> nsresult
[src]
readonly attribute long port;
pub unsafe fn GetRx(&self, aRx: *mut int32_t) -> nsresult
[src]
readonly attribute long rx;
pub unsafe fn GetTx(&self, aTx: *mut int32_t) -> nsresult
[src]
readonly attribute long tx;
pub unsafe fn GetFd(&self, aFd: *mut int32_t) -> nsresult
[src]
readonly attribute long fd;
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 nsINetworkActivityData
[src]
const IID: nsIID
IID: nsIID = nsID(819328835, 37790, 18118, [128, 138, 126, 160, 124, 119, 2, 142])
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 nsINetworkActivityData
[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 nsINetworkActivityData
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.