Struct xpcom::interfaces::nsITCPSocketCallback
[−]
[src]
#[repr(C)]pub struct nsITCPSocketCallback { /* fields omitted */ }
interface nsITCPSocketCallback : nsISupports
Methods
impl nsITCPSocketCallback
[src]
pub fn coerce<T: nsITCPSocketCallbackCoerce>(&self) -> &T
[src]
Cast this nsITCPSocketCallback
to one of its base interfaces.
impl nsITCPSocketCallback
[src]
pub const BUFFER_SIZE: i64
BUFFER_SIZE: i64 = 65536
pub unsafe fn FireErrorEvent(
&self,
name: &nsAString,
type_: &nsAString
) -> nsresult
[src]
&self,
name: &nsAString,
type_: &nsAString
) -> nsresult
void fireErrorEvent (in AString name, in AString type);
pub unsafe fn FireDataStringEvent(
&self,
type_: &nsAString,
data: &nsACString
) -> nsresult
[src]
&self,
type_: &nsAString,
data: &nsACString
) -> nsresult
void fireDataStringEvent (in DOMString type, in ACString data);
pub unsafe fn FireEvent(&self, type_: &nsAString) -> nsresult
[src]
void fireEvent (in DOMString type);
pub unsafe fn UpdateReadyState(&self, readystate: uint32_t) -> nsresult
[src]
void updateReadyState (in unsigned long readystate);
pub unsafe fn UpdateBufferedAmount(
&self,
bufferedAmount: uint32_t,
trackingNumber: uint32_t
) -> nsresult
[src]
&self,
bufferedAmount: uint32_t,
trackingNumber: uint32_t
) -> nsresult
void updateBufferedAmount (in uint32_t bufferedAmount, in uint32_t trackingNumber);
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 nsITCPSocketCallback
[src]
const IID: nsIID
IID: nsIID = nsID(2888584041, 52089, 18279, [177, 206, 188, 246, 41, 69, 205, 57])
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 nsITCPSocketCallback
[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 nsITCPSocketCallback
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.