Struct xpcom::interfaces::nsIGeolocationUpdate [] [src]

#[repr(C)]
pub struct nsIGeolocationUpdate { /* fields omitted */ }

interface nsIGeolocationUpdate : nsISupports

/**

 * Interface provides a way for a geolocation provider to
 * notify the system that a new location is available.
 */

Methods

impl nsIGeolocationUpdate
[src]

[src]

Cast this nsIGeolocationUpdate to one of its base interfaces.

impl nsIGeolocationUpdate
[src]

[src]

/**
   * Notify the geolocation service that a new geolocation
   * has been discovered.
   * This must be called on the main thread
   */

void update (in nsIDOMGeoPosition position);

[src]

/**
   * Notify the geolocation service of an error.
   * This must be called on the main thread.
   * The parameter refers to one of the constants in the
   * nsIDOMGeoPositionError interface.
   * Use this to report spurious errors coming from the
   * provider; for errors occurring inside the methods in
   * the nsIGeolocationProvider interface, just use the return
   * value.
   */

void notifyError (in unsigned short error);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIGeolocationUpdate
[src]

IID: nsIID = nsID(1681769961, 47377, 19244, [141, 68, 96, 49, 98, 105, 107, 175])

[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 nsIGeolocationUpdate
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIGeolocationUpdate
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.