Struct xpcom::interfaces::nsIHttpActivityDistributor
[−]
[src]
#[repr(C)]pub struct nsIHttpActivityDistributor { /* fields omitted */ }
interface nsIHttpActivityDistributor : nsIHttpActivityObserver
/**
* nsIHttpActivityDistributor
*
* This interface provides a way to register and unregister observers to the
* http activities.
*/
Methods
impl nsIHttpActivityDistributor
[src]
pub fn coerce<T: nsIHttpActivityDistributorCoerce>(&self) -> &T
[src]
Cast this nsIHttpActivityDistributor
to one of its base interfaces.
impl nsIHttpActivityDistributor
[src]
pub unsafe fn AddObserver(
&self,
aObserver: *const nsIHttpActivityObserver
) -> nsresult
[src]
&self,
aObserver: *const nsIHttpActivityObserver
) -> nsresult
void addObserver (in nsIHttpActivityObserver aObserver);
pub unsafe fn RemoveObserver(
&self,
aObserver: *const nsIHttpActivityObserver
) -> nsresult
[src]
&self,
aObserver: *const nsIHttpActivityObserver
) -> nsresult
void removeObserver (in nsIHttpActivityObserver aObserver);
Methods from Deref<Target = nsIHttpActivityObserver>
pub fn coerce<T: nsIHttpActivityObserverCoerce>(&self) -> &T
[src]
Cast this nsIHttpActivityObserver
to one of its base interfaces.
pub const ACTIVITY_TYPE_SOCKET_TRANSPORT: i64
pub const ACTIVITY_TYPE_HTTP_TRANSACTION: i64
pub const ACTIVITY_SUBTYPE_REQUEST_HEADER: i64
pub const ACTIVITY_SUBTYPE_REQUEST_BODY_SENT: i64
pub const ACTIVITY_SUBTYPE_RESPONSE_START: i64
pub const ACTIVITY_SUBTYPE_RESPONSE_HEADER: i64
pub const ACTIVITY_SUBTYPE_RESPONSE_COMPLETE: i64
pub const ACTIVITY_SUBTYPE_TRANSACTION_CLOSE: i64
pub unsafe fn ObserveActivity(
&self,
aHttpChannel: *const nsISupports,
aActivityType: uint32_t,
aActivitySubtype: uint32_t,
aTimestamp: PRTime,
aExtraSizeData: uint64_t,
aExtraStringData: &nsACString
) -> nsresult
[src]
&self,
aHttpChannel: *const nsISupports,
aActivityType: uint32_t,
aActivitySubtype: uint32_t,
aTimestamp: PRTime,
aExtraSizeData: uint64_t,
aExtraStringData: &nsACString
) -> nsresult
/**
* observe activity from the http transport
*
* @param aHttpChannel
* nsISupports interface for the the http channel that
* generated this activity
* @param aActivityType
* The value of this aActivityType will be one of
* ACTIVITY_TYPE_SOCKET_TRANSPORT or
* ACTIVITY_TYPE_HTTP_TRANSACTION
* @param aActivitySubtype
* The value of this aActivitySubtype, will be depend
* on the value of aActivityType. When aActivityType
* is ACTIVITY_TYPE_SOCKET_TRANSPORT
* aActivitySubtype will be one of the
* nsISocketTransport::STATUS_???? values defined in
* nsISocketTransport.idl
* OR when aActivityType
* is ACTIVITY_TYPE_HTTP_TRANSACTION
* aActivitySubtype will be one of the
* nsIHttpActivityObserver::ACTIVITY_SUBTYPE_???? values
* defined below
* @param aTimestamp
* microseconds past the epoch of Jan 1, 1970
* @param aExtraSizeData
* Any extra size data optionally available with
* this activity
* @param aExtraStringData
* Any extra string data optionally available with
* this activity
*/
[must_use] void observeActivity (in nsISupports aHttpChannel, in uint32_t aActivityType, in uint32_t aActivitySubtype, in PRTime aTimestamp, in uint64_t aExtraSizeData, in ACString aExtraStringData);
pub unsafe fn GetIsActive(&self, aIsActive: *mut bool) -> nsresult
[src]
/**
* This attribute is true when this interface is active and should
* observe http activities. When false, observeActivity() should not
* be called. It is present for compatibility reasons and should be
* implemented only by nsHttpActivityDistributor.
*/
[must_use] readonly attribute boolean isActive;
Trait Implementations
impl XpCom for nsIHttpActivityDistributor
[src]
const IID: nsIID
IID: nsIID = nsID(2085694648, 22570, 17957, [181, 182, 134, 57, 117, 82, 113, 181])
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 nsIHttpActivityDistributor
[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 nsIHttpActivityDistributor
[src]
type Target = nsIHttpActivityObserver
The resulting type after dereferencing.
fn deref(&self) -> &nsIHttpActivityObserver
[src]
Dereferences the value.