Struct xpcom::interfaces::mozIAnnotatedResult
[−]
[src]
#[repr(C)]pub struct mozIAnnotatedResult { /* fields omitted */ }
interface mozIAnnotatedResult : nsISupports
Methods
impl mozIAnnotatedResult
[src]
pub fn coerce<T: mozIAnnotatedResultCoerce>(&self) -> &T
[src]
Cast this mozIAnnotatedResult
to one of its base interfaces.
impl mozIAnnotatedResult
[src]
pub unsafe fn GetGuid(&self, aGuid: &mut nsACString) -> nsresult
[src]
/**
* Represents a place annotated with a given annotation. If a place has
* multiple annotations, it can be represented by multiple
* mozIAnnotatedResult(s).
*/
/**
* The globally unique identifier of the place with this annotation.
*
* @note if itemId is valid this is the guid of the bookmark, otherwise
* of the page.
*/
readonly attribute AUTF8String guid;
pub unsafe fn GetUri(&self, aUri: *mut *const nsIURI) -> nsresult
[src]
/**
* The URI of the place with this annotation, if available, null otherwise.
*/
readonly attribute nsIURI uri;
pub unsafe fn GetItemId(&self, aItemId: *mut int64_t) -> nsresult
[src]
/**
* The bookmark id of the place with this annotation, if available,
* -1 otherwise.
*
* @note if itemId is -1, it doesn't mean the page is not bookmarked, just
* that this annotation is relative to the page, not to the bookmark.
*/
readonly attribute long long itemId;
pub unsafe fn GetAnnotationName(
&self,
aAnnotationName: &mut nsACString
) -> nsresult
[src]
&self,
aAnnotationName: &mut nsACString
) -> nsresult
/**
* Name of the annotation.
*/
readonly attribute AUTF8String annotationName;
pub unsafe fn GetAnnotationValue(
&self,
aAnnotationValue: *mut *const nsIVariant
) -> nsresult
[src]
&self,
aAnnotationValue: *mut *const nsIVariant
) -> nsresult
/**
* Value of the annotation.
*/
readonly attribute nsIVariant annotationValue;
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 mozIAnnotatedResult
[src]
const IID: nsIID
IID: nsIID = nsID(2180841864, 56170, 18734, [128, 182, 246, 65, 73, 19, 179, 150])
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 mozIAnnotatedResult
[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 mozIAnnotatedResult
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.