Struct xpcom::interfaces::nsIDivertableChannel
[−]
[src]
#[repr(C)]pub struct nsIDivertableChannel { /* fields omitted */ }
interface nsIDivertableChannel : nsISupports
/**
* A channel implementing this interface allows diverting from an
* nsIStreamListener in the child process to one in the parent.
*/
Methods
impl nsIDivertableChannel
[src]
pub fn coerce<T: nsIDivertableChannelCoerce>(&self) -> &T
[src]
Cast this nsIDivertableChannel
to one of its base interfaces.
impl nsIDivertableChannel
[src]
pub unsafe fn UnknownDecoderInvolvedKeepData(&self) -> nsresult
[src]
/**
* nsUnknownDecoder delays calling OnStartRequest until it gets enough data
* to decide about the content type (until OnDataAvaiable is called). In a
* OnStartRequest DivertToParent can be called but some OnDataAvailables are
* already called and therefore can not be diverted to parent.
*
* nsUnknownDecoder will call UnknownDecoderInvolvedKeepData in its
* OnStartRequest function and when it calls OnStartRequest of the next
* listener it will call UnknownDecoderInvolvedOnStartRequestCalled. In this
* function Child process will decide to discarge data if it is not diverting
* to parent or keep them if it is diverting to parent.
*/
void unknownDecoderInvolvedKeepData ();
pub unsafe fn UnknownDecoderInvolvedOnStartRequestCalled(&self) -> nsresult
[src]
void unknownDecoderInvolvedOnStartRequestCalled ();
pub unsafe fn GetDivertingToParent(
&self,
aDivertingToParent: *mut bool
) -> nsresult
[src]
&self,
aDivertingToParent: *mut bool
) -> nsresult
readonly attribute bool divertingToParent;
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 nsIDivertableChannel
[src]
const IID: nsIID
IID: nsIID = nsID(2057041197, 63528, 19249, [184, 223, 180, 15, 221, 55, 208, 7])
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 nsIDivertableChannel
[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 nsIDivertableChannel
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.