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]
pub fn coerce<T: nsIStreamTransportServiceCoerce>(&self) -> &T
[src]
Cast this nsIStreamTransportService
to one of its base interfaces.
impl nsIStreamTransportService
[src]
pub unsafe fn CreateInputTransport(
&self,
aStream: *const nsIInputStream,
aCloseWhenDone: bool,
_retval: *mut *const nsITransport
) -> nsresult
[src]
&self,
aStream: *const nsIInputStream,
aCloseWhenDone: bool,
_retval: *mut *const nsITransport
) -> nsresult
/**
* 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);
pub unsafe fn InputAvailable(
&self,
aStream: *const nsIInputStream,
aCallback: *const nsIInputAvailableCallback
) -> nsresult
[src]
&self,
aStream: *const nsIInputStream,
aCallback: *const nsIInputAvailableCallback
) -> nsresult
void InputAvailable (in nsIInputStream aStream, in nsIInputAvailableCallback aCallback);
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 nsIStreamTransportService
[src]
const IID: nsIID
IID: nsIID = nsID(1577770877, 38789, 17859, [161, 147, 4, 242, 90, 117, 218, 143])
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 nsIStreamTransportService
[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 nsIStreamTransportService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.