Struct xpcom::interfaces::nsIWebSocketFrame
[−]
[src]
#[repr(C)]pub struct nsIWebSocketFrame { /* fields omitted */ }
interface nsIWebSocketFrame : nsISupports
Methods
impl nsIWebSocketFrame
[src]
pub fn coerce<T: nsIWebSocketFrameCoerce>(&self) -> &T
[src]
Cast this nsIWebSocketFrame
to one of its base interfaces.
impl nsIWebSocketFrame
[src]
pub const OPCODE_CONTINUATION: i64
OPCODE_CONTINUATION: i64 = 0
pub const OPCODE_TEXT: i64
OPCODE_TEXT: i64 = 1
pub const OPCODE_BINARY: i64
OPCODE_BINARY: i64 = 2
pub const OPCODE_CLOSE: i64
OPCODE_CLOSE: i64 = 8
pub const OPCODE_PING: i64
OPCODE_PING: i64 = 9
pub const OPCODE_PONG: i64
OPCODE_PONG: i64 = 10
pub unsafe fn GetTimeStamp(
&self,
aTimeStamp: *mut DOMHighResTimeStamp
) -> nsresult
[src]
&self,
aTimeStamp: *mut DOMHighResTimeStamp
) -> nsresult
[must_use] readonly attribute DOMHighResTimeStamp timeStamp;
pub unsafe fn GetFinBit(&self, aFinBit: *mut bool) -> nsresult
[src]
[must_use] readonly attribute boolean finBit;
pub unsafe fn GetRsvBit1(&self, aRsvBit1: *mut bool) -> nsresult
[src]
[must_use] readonly attribute boolean rsvBit1;
pub unsafe fn GetRsvBit2(&self, aRsvBit2: *mut bool) -> nsresult
[src]
[must_use] readonly attribute boolean rsvBit2;
pub unsafe fn GetRsvBit3(&self, aRsvBit3: *mut bool) -> nsresult
[src]
[must_use] readonly attribute boolean rsvBit3;
pub unsafe fn GetOpCode(&self, aOpCode: *mut uint16_t) -> nsresult
[src]
[must_use] readonly attribute unsigned short opCode;
pub unsafe fn GetMaskBit(&self, aMaskBit: *mut bool) -> nsresult
[src]
[must_use] readonly attribute boolean maskBit;
pub unsafe fn GetMask(&self, aMask: *mut uint32_t) -> nsresult
[src]
[must_use] readonly attribute unsigned long mask;
pub unsafe fn GetPayload(&self, aPayload: &mut nsACString) -> nsresult
[src]
[must_use] readonly attribute ACString payload;
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 nsIWebSocketFrame
[src]
const IID: nsIID
IID: nsIID = nsID(1729406654, 8805, 20339, [169, 136, 215, 138, 18, 65, 96, 55])
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 nsIWebSocketFrame
[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 nsIWebSocketFrame
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.