Struct xpcom::interfaces::nsIPresentationDataChannelSessionTransportBuilder
[−]
[src]
#[repr(C)]pub struct nsIPresentationDataChannelSessionTransportBuilder { /* fields omitted */ }
interface nsIPresentationDataChannelSessionTransportBuilder : nsIPresentationSessionTransportBuilder
/**
* Builder for WebRTC data channel session transport
*/
Methods
impl nsIPresentationDataChannelSessionTransportBuilder
[src]
pub fn coerce<T: nsIPresentationDataChannelSessionTransportBuilderCoerce>(
&self
) -> &T
[src]
&self
) -> &T
Cast this nsIPresentationDataChannelSessionTransportBuilder
to one of its base interfaces.
impl nsIPresentationDataChannelSessionTransportBuilder
[src]
pub unsafe fn BuildDataChannelTransport(
&self,
aRole: uint8_t,
aWindow: *const mozIDOMWindow,
aListener: *const nsIPresentationSessionTransportBuilderListener
) -> nsresult
[src]
&self,
aRole: uint8_t,
aWindow: *const mozIDOMWindow,
aListener: *const nsIPresentationSessionTransportBuilderListener
) -> nsresult
/**
* The following creation function will trigger |listener.onSessionTransport|
* if the session transport is successfully built, |listener.onError| if some
* error occurs during creating session transport. The |notifyConnected| of
* |aControlChannel| should be called before calling
* |buildDataChannelTransport|.
*/
void buildDataChannelTransport (in uint8_t aRole, in mozIDOMWindow aWindow, in nsIPresentationSessionTransportBuilderListener aListener);
pub unsafe fn OnOffer(
&self,
offer: *const nsIPresentationChannelDescription
) -> nsresult
[src]
&self,
offer: *const nsIPresentationChannelDescription
) -> nsresult
void onOffer (in nsIPresentationChannelDescription offer);
pub unsafe fn OnAnswer(
&self,
answer: *const nsIPresentationChannelDescription
) -> nsresult
[src]
&self,
answer: *const nsIPresentationChannelDescription
) -> nsresult
void onAnswer (in nsIPresentationChannelDescription answer);
pub unsafe fn OnIceCandidate(&self, candidate: &nsAString) -> nsresult
[src]
void onIceCandidate (in DOMString candidate);
pub unsafe fn NotifyDisconnected(&self, reason: nsresult) -> nsresult
[src]
void notifyDisconnected (in nsresult reason);
Methods from Deref<Target = nsIPresentationSessionTransportBuilder>
pub fn coerce<T: nsIPresentationSessionTransportBuilderCoerce>(&self) -> &T
[src]
Cast this nsIPresentationSessionTransportBuilder
to one of its base interfaces.
Trait Implementations
impl XpCom for nsIPresentationDataChannelSessionTransportBuilder
[src]
const IID: nsIID
IID: nsIID = nsID(2167522528, 14988, 19393, [169, 42, 132, 49, 71, 61, 47, 232])
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 nsIPresentationDataChannelSessionTransportBuilder
[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 nsIPresentationDataChannelSessionTransportBuilder
[src]
type Target = nsIPresentationSessionTransportBuilder
The resulting type after dereferencing.
fn deref(&self) -> &nsIPresentationSessionTransportBuilder
[src]
Dereferences the value.