Struct xpcom::interfaces::nsITransportEventSink
[−]
[src]
#[repr(C)]pub struct nsITransportEventSink { /* fields omitted */ }
interface nsITransportEventSink : nsISupports
Methods
impl nsITransportEventSink
[src]
pub fn coerce<T: nsITransportEventSinkCoerce>(&self) -> &T
[src]
Cast this nsITransportEventSink
to one of its base interfaces.
impl nsITransportEventSink
[src]
pub unsafe fn OnTransportStatus(
&self,
aTransport: *const nsITransport,
aStatus: nsresult,
aProgress: int64_t,
aProgressMax: int64_t
) -> nsresult
[src]
&self,
aTransport: *const nsITransport,
aStatus: nsresult,
aProgress: int64_t,
aProgressMax: int64_t
) -> nsresult
/**
* Transport status notification.
*
* @param aTransport
* the transport sending this status notification.
* @param aStatus
* the transport status (resolvable to a string using
* nsIErrorService). See nsISocketTransport for socket specific
* status codes and more comments.
* @param aProgress
* the amount of data either read or written depending on the value
* of the status code. this value is relative to aProgressMax.
* @param aProgressMax
* the maximum amount of data that will be read or written. if
* unknown, -1 will be passed.
*/
void onTransportStatus (in nsITransport aTransport, in nsresult aStatus, in long long aProgress, in long long aProgressMax);
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 nsITransportEventSink
[src]
const IID: nsIID
IID: nsIID = nsID(3987010848, 26615, 18507, [166, 145, 140, 50, 38, 165, 176, 166])
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 nsITransportEventSink
[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 nsITransportEventSink
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.