Struct xpcom::interfaces::nsIUDPSocketInternal
[−]
[src]
#[repr(C)]pub struct nsIUDPSocketInternal { /* fields omitted */ }
interface nsIUDPSocketInternal : nsISupports
Methods
impl nsIUDPSocketInternal
[src]
pub fn coerce<T: nsIUDPSocketInternalCoerce>(&self) -> &T
[src]
Cast this nsIUDPSocketInternal
to one of its base interfaces.
impl nsIUDPSocketInternal
[src]
pub unsafe fn CallListenerOpened(&self) -> nsresult
[src]
void callListenerOpened ();
pub unsafe fn CallListenerConnected(&self) -> nsresult
[src]
void callListenerConnected ();
pub unsafe fn CallListenerClosed(&self) -> nsresult
[src]
void callListenerClosed ();
pub unsafe fn CallListenerReceivedData(
&self,
host: &nsACString,
port: uint16_t,
data: *const uint8_t,
dataLength: uint32_t
) -> nsresult
[src]
&self,
host: &nsACString,
port: uint16_t,
data: *const uint8_t,
dataLength: uint32_t
) -> nsresult
void callListenerReceivedData (in AUTF8String host, in unsigned short port, [array, size_is (dataLength), const] in uint8_t data, in unsigned long dataLength);
pub unsafe fn CallListenerError(
&self,
message: &nsACString,
filename: &nsACString,
lineNumber: uint32_t
) -> nsresult
[src]
&self,
message: &nsACString,
filename: &nsACString,
lineNumber: uint32_t
) -> nsresult
void callListenerError (in AUTF8String message, in AUTF8String filename, in uint32_t lineNumber);
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 nsIUDPSocketInternal
[src]
const IID: nsIID
IID: nsIID = nsID(1631441837, 22923, 19881, [173, 99, 187, 218, 80, 194, 0, 152])
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 nsIUDPSocketInternal
[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 nsIUDPSocketInternal
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.