Struct xpcom::interfaces::nsIRemoteService
[−]
[src]
#[repr(C)]pub struct nsIRemoteService { /* fields omitted */ }
interface nsIRemoteService : nsISupports
/**
* Start and stop the remote service (xremote/phremote), and register
* windows with the service for backwards compatibility with old xremote
* clients.
*
* @status FLUID This interface is not frozen and is not intended for embedders
* who want a frozen API. If you are an embedder and need this
* functionality, contact Benjamin Smedberg about the possibility
* of freezing the functionality you need.
*/
Methods
impl nsIRemoteService
[src]
pub fn coerce<T: nsIRemoteServiceCoerce>(&self) -> &T
[src]
Cast this nsIRemoteService
to one of its base interfaces.
impl nsIRemoteService
[src]
pub unsafe fn Startup(
&self,
appName: *const c_char,
profileName: *const c_char
) -> nsresult
[src]
&self,
appName: *const c_char,
profileName: *const c_char
) -> nsresult
/**
* Start the remote service. This should not be done until app startup
* appears to have been successful.
*
* @param appName (Required) Sets a window property identifying the
* application.
* @param profileName (May be null) Sets a window property identifying the
* profile name.
*/
void startup (in string appName, in string profileName);
pub unsafe fn RegisterWindow(&self, aWindow: *const mozIDOMWindow) -> nsresult
[src]
/**
* Register a XUL window with the xremote service. The window will be
* configured to accept incoming remote requests. If this method is called
* before startup(), the registration will happen once startup() is called.
*/
void registerWindow (in mozIDOMWindow aWindow);
pub unsafe fn Shutdown(&self) -> nsresult
[src]
/**
* Stop the remote service from accepting additional requests.
*/
void shutdown ();
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 nsIRemoteService
[src]
const IID: nsIID
IID: nsIID = nsID(3206803907, 28690, 17117, [176, 187, 168, 64, 96, 204, 197, 46])
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 nsIRemoteService
[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 nsIRemoteService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.