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]

[src]

Cast this nsIInputStreamChannel to one of its base interfaces.

impl nsIInputStreamChannel
[src]

[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);

[src]

/**
     * 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;

[src]

/**
     * 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;

[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;

[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;

[src]

/**
     * Returns true if srcdocData has been set within the channel.
     */

readonly attribute boolean isSrcdocChannel;

[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;

[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>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIInputStreamChannel
[src]

IID: nsIID = nsID(3933405752, 19453, 16405, [132, 137, 143, 38, 77, 5, 179, 67])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIInputStreamChannel
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.