Struct xpcom::interfaces::nsIStreamTransportService [] [src]

#[repr(C)]
pub struct nsIStreamTransportService { /* fields omitted */ }

interface nsIStreamTransportService : nsISupports

/**
 * This service read/writes a stream on a background thread.
 *
 * Use this service to transform any blocking stream (e.g., file stream)
 * into a fully asynchronous stream that can be read/written without
 * blocking the main thread.
 */

Methods

impl nsIStreamTransportService
[src]

[src]

Cast this nsIStreamTransportService to one of its base interfaces.

impl nsIStreamTransportService
[src]

[src]

/**
     * CreateInputTransport
     *
     * @param aStream
     *        The input stream that will be read on a background thread.
     *        This stream must implement "blocking" stream semantics.
     * @param aCloseWhenDone
     *        Specify this flag to have the input stream closed once its
     *        contents have been completely read.
     *
     * @return nsITransport instance.
     */

nsITransport createInputTransport (in nsIInputStream aStream, in boolean aCloseWhenDone);

[src]

void InputAvailable (in nsIInputStream aStream, in nsIInputAvailableCallback aCallback);

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

IID: nsIID = nsID(1577770877, 38789, 17859, [161, 147, 4, 242, 90, 117, 218, 143])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIStreamTransportService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.