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]
pub fn coerce<T: nsIGeolocationUpdateCoerce>(&self) -> &T
[src]
Cast this nsIGeolocationUpdate
to one of its base interfaces.
impl nsIGeolocationUpdate
[src]
pub unsafe fn Update(&self, position: *const nsIDOMGeoPosition) -> nsresult
[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);
pub unsafe fn NotifyError(&self, error: uint16_t) -> nsresult
[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>
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 nsIGeolocationUpdate
[src]
const IID: nsIID
IID: nsIID = nsID(1681769961, 47377, 19244, [141, 68, 96, 49, 98, 105, 107, 175])
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 nsIGeolocationUpdate
[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 nsIGeolocationUpdate
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.