Struct xpcom::interfaces::nsIHttpPushListener
[−]
[src]
#[repr(C)]pub struct nsIHttpPushListener { /* fields omitted */ }
interface nsIHttpPushListener : nsISupports
/**
* nsIHttpPushListener
*
* Used for triggering when a HTTP/2 push is received.
*
*/
Methods
impl nsIHttpPushListener
[src]
pub fn coerce<T: nsIHttpPushListenerCoerce>(&self) -> &T
[src]
Cast this nsIHttpPushListener
to one of its base interfaces.
impl nsIHttpPushListener
[src]
pub unsafe fn OnPush(
&self,
associatedChannel: *const nsIHttpChannel,
pushChannel: *const nsIHttpChannel
) -> nsresult
[src]
&self,
associatedChannel: *const nsIHttpChannel,
pushChannel: *const nsIHttpChannel
) -> nsresult
/**
* When provided as a notificationCallback to an httpChannel, this.onPush()
* will be invoked when there is a >= Http2 push to that
* channel. The push may be in progress.
*
* The consumer must start the new channel in the usual way by calling
* pushChannel.AsyncOpen with a nsIStreamListener object that
* will receive the normal sequence of OnStartRequest(),
* 0 to N OnDataAvailable(), and onStopRequest().
*
* The new channel can be canceled after the AsyncOpen if it is not wanted.
*
* @param associatedChannel
* the monitor channel that was recieved on
* @param pushChannel
* a channel to the resource which is being pushed
*/
void onPush (in nsIHttpChannel associatedChannel, in nsIHttpChannel pushChannel);
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 nsIHttpPushListener
[src]
const IID: nsIID
IID: nsIID = nsID(225240476, 44381, 17696, [180, 211, 9, 102, 72, 104, 242, 121])
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 nsIHttpPushListener
[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 nsIHttpPushListener
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.