Struct xpcom::interfaces::nsIPresentationControlServerListener
[−]
[src]
#[repr(C)]pub struct nsIPresentationControlServerListener { /* fields omitted */ }
interface nsIPresentationControlServerListener : nsISupports
Methods
impl nsIPresentationControlServerListener
[src]
pub fn coerce<T: nsIPresentationControlServerListenerCoerce>(&self) -> &T
[src]
Cast this nsIPresentationControlServerListener
to one of its base interfaces.
impl nsIPresentationControlServerListener
[src]
pub unsafe fn OnServerReady(
&self,
aPort: uint16_t,
aCertFingerprint: &nsACString
) -> nsresult
[src]
&self,
aPort: uint16_t,
aCertFingerprint: &nsACString
) -> nsresult
/**
* Callback while the server is ready or restarted.
* @param aPort
* The port of the server socket.
* @param aCertFingerprint
* The SHA-256 fingerprint of TLS server certificate.
* Empty string represents server started without encryption.
*/
void onServerReady (in uint16_t aPort, in AUTF8String aCertFingerprint);
pub unsafe fn OnServerStopped(&self, aResult: nsresult) -> nsresult
[src]
/**
* Callback while the server is stopped or fails to start.
* @param aResult
* The error cause of server stopped or the reason of
* start failure.
* NS_OK means the server is stopped by close.
*/
void onServerStopped (in nsresult aResult);
pub unsafe fn OnSessionRequest(
&self,
aDeviceInfo: *const nsITCPDeviceInfo,
aUrl: &nsAString,
aPresentationId: &nsAString,
aControlChannel: *const nsIPresentationControlChannel
) -> nsresult
[src]
&self,
aDeviceInfo: *const nsITCPDeviceInfo,
aUrl: &nsAString,
aPresentationId: &nsAString,
aControlChannel: *const nsIPresentationControlChannel
) -> nsresult
/**
* Callback while the remote host is requesting to start a presentation session.
* @param aDeviceInfo The device information related to the remote host.
* @param aUrl The URL requested to open by remote device.
* @param aPresentationId The Id for representing this session.
* @param aControlChannel The control channel for this session.
*/
void onSessionRequest (in nsITCPDeviceInfo aDeviceInfo, in DOMString aUrl, in DOMString aPresentationId, in nsIPresentationControlChannel aControlChannel);
pub unsafe fn OnTerminateRequest(
&self,
aDeviceInfo: *const nsITCPDeviceInfo,
aPresentationId: &nsAString,
aControlChannel: *const nsIPresentationControlChannel,
aIsFromReceiver: bool
) -> nsresult
[src]
&self,
aDeviceInfo: *const nsITCPDeviceInfo,
aPresentationId: &nsAString,
aControlChannel: *const nsIPresentationControlChannel,
aIsFromReceiver: bool
) -> nsresult
/**
* Callback while the remote host is requesting to terminate a presentation session.
* @param aDeviceInfo The device information related to the remote host.
* @param aPresentationId The Id for representing this session.
* @param aControlChannel The control channel for this session.
* @param aIsFromReceiver true if termination is initiated by receiver.
*/
void onTerminateRequest (in nsITCPDeviceInfo aDeviceInfo, in DOMString aPresentationId, in nsIPresentationControlChannel aControlChannel, in boolean aIsFromReceiver);
pub unsafe fn OnReconnectRequest(
&self,
aDeviceInfo: *const nsITCPDeviceInfo,
url: &nsAString,
aPresentationId: &nsAString,
aControlChannel: *const nsIPresentationControlChannel
) -> nsresult
[src]
&self,
aDeviceInfo: *const nsITCPDeviceInfo,
url: &nsAString,
aPresentationId: &nsAString,
aControlChannel: *const nsIPresentationControlChannel
) -> nsresult
/**
* Callback while the remote host is requesting to reconnect a presentation session.
* @param aDeviceInfo The device information related to the remote host.
* @param aUrl The URL requested to open by remote device.
* @param aPresentationId The Id for representing this session.
* @param aControlChannel The control channel for this session.
*/
void onReconnectRequest (in nsITCPDeviceInfo aDeviceInfo, in DOMString url, in DOMString aPresentationId, in nsIPresentationControlChannel aControlChannel);
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 nsIPresentationControlServerListener
[src]
const IID: nsIID
IID: nsIID = nsID(163438511, 64706, 19913, [179, 62, 165, 9, 161, 194, 251, 109])
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 nsIPresentationControlServerListener
[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 nsIPresentationControlServerListener
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.