Struct xpcom::interfaces::nsIInputStreamChannel
[−]
[src]
#[repr(C)]pub struct nsIInputStreamChannel { /* fields omitted */ }
interface nsIInputStreamChannel : nsISupports
/**
* nsIInputStreamChannel
*
* This interface provides methods to initialize an input stream channel.
* The input stream channel serves as a data pump for an input stream.
*/
Methods
impl nsIInputStreamChannel
[src]
pub fn coerce<T: nsIInputStreamChannelCoerce>(&self) -> &T
[src]
Cast this nsIInputStreamChannel
to one of its base interfaces.
impl nsIInputStreamChannel
[src]
pub unsafe fn SetURI(&self, aURI: *const nsIURI) -> nsresult
[src]
/**
* Sets the URI for this channel. This must be called before the
* channel is opened, and it may only be called once.
*/
void setURI (in nsIURI aURI);
pub unsafe fn GetContentStream(
&self,
aContentStream: *mut *const nsIInputStream
) -> nsresult
[src]
&self,
aContentStream: *mut *const nsIInputStream
) -> nsresult
/**
* Get/set the content stream
*
* This stream contains the data that will be pushed to the channel's
* stream listener. If the stream is non-blocking and supports the
* nsIAsyncInputStream interface, then the stream will be read directly.
* Otherwise, the stream will be read on a background thread.
*
* This attribute must be set before the channel is opened, and it may
* only be set once.
*
* @throws NS_ERROR_IN_PROGRESS if the setter is called after the channel
* has been opened.
*/
attribute nsIInputStream contentStream;
pub unsafe fn SetContentStream(
&self,
aContentStream: *const nsIInputStream
) -> nsresult
[src]
&self,
aContentStream: *const nsIInputStream
) -> nsresult
/**
* Get/set the content stream
*
* This stream contains the data that will be pushed to the channel's
* stream listener. If the stream is non-blocking and supports the
* nsIAsyncInputStream interface, then the stream will be read directly.
* Otherwise, the stream will be read on a background thread.
*
* This attribute must be set before the channel is opened, and it may
* only be set once.
*
* @throws NS_ERROR_IN_PROGRESS if the setter is called after the channel
* has been opened.
*/
attribute nsIInputStream contentStream;
pub unsafe fn GetSrcdocData(&self, aSrcdocData: &mut nsAString) -> nsresult
[src]
/**
* Get/set the srcdoc data string. When the input stream channel is
* created to load a srcdoc iframe, this is set to hold the value of the
* srcdoc attribute.
*
* This should be the same value used to create contentStream, but this is
* not checked.
*
* Changing the value of this attribute will not otherwise affect the
* functionality of the channel or input stream.
*/
attribute AString srcdocData;
pub unsafe fn SetSrcdocData(&self, aSrcdocData: &nsAString) -> nsresult
[src]
/**
* Get/set the srcdoc data string. When the input stream channel is
* created to load a srcdoc iframe, this is set to hold the value of the
* srcdoc attribute.
*
* This should be the same value used to create contentStream, but this is
* not checked.
*
* Changing the value of this attribute will not otherwise affect the
* functionality of the channel or input stream.
*/
attribute AString srcdocData;
pub unsafe fn GetIsSrcdocChannel(&self, aIsSrcdocChannel: *mut bool) -> nsresult
[src]
/**
* Returns true if srcdocData has been set within the channel.
*/
readonly attribute boolean isSrcdocChannel;
pub unsafe fn GetBaseURI(&self, aBaseURI: *mut *const nsIURI) -> nsresult
[src]
/**
* The base URI to be used for the channel. Used when the base URI cannot
* be inferred by other means, for example when this is a srcdoc channel.
*/
attribute nsIURI baseURI;
pub unsafe fn SetBaseURI(&self, aBaseURI: *const nsIURI) -> nsresult
[src]
/**
* The base URI to be used for the channel. Used when the base URI cannot
* be inferred by other means, for example when this is a srcdoc channel.
*/
attribute nsIURI baseURI;
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 nsIInputStreamChannel
[src]
const IID: nsIID
IID: nsIID = nsID(3933405752, 19453, 16405, [132, 137, 143, 38, 77, 5, 179, 67])
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 nsIInputStreamChannel
[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 nsIInputStreamChannel
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.