Struct xpcom::interfaces::nsIProperties
[−]
[src]
#[repr(C)]pub struct nsIProperties { /* fields omitted */ }
interface nsIProperties : nsISupports
Methods
impl nsIProperties
[src]
pub fn coerce<T: nsIPropertiesCoerce>(&self) -> &T
[src]
Cast this nsIProperties
to one of its base interfaces.
impl nsIProperties
[src]
pub unsafe fn Get(
&self,
prop: *const c_char,
iid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
prop: *const c_char,
iid: &nsIID,
result: *mut *mut c_void
) -> nsresult
/**
* Gets a property with a given name.
*
* @throws NS_ERROR_FAILURE if a property with that name doesn't exist.
* @throws NS_ERROR_NO_INTERFACE if the found property fails to QI to the
* given iid.
*/
void get (in string prop, in nsIIDRef iid, [iid_is (iid), retval] out nsQIResult result);
pub unsafe fn Set(
&self,
prop: *const c_char,
value: *const nsISupports
) -> nsresult
[src]
&self,
prop: *const c_char,
value: *const nsISupports
) -> nsresult
/**
* Sets a property with a given name to a given value.
*/
void set (in string prop, in nsISupports value);
pub unsafe fn Has(&self, prop: *const c_char, _retval: *mut bool) -> nsresult
[src]
/**
* Returns true if the property with the given name exists.
*/
boolean has (in string prop);
pub unsafe fn Undefine(&self, prop: *const c_char) -> nsresult
[src]
/**
* Undefines a property.
* @throws NS_ERROR_FAILURE if a property with that name doesn't
* already exist.
*/
void undefine (in string prop);
pub unsafe fn GetKeys(
&self,
count: *mut uint32_t,
keys: *mut *mut *const c_char
) -> nsresult
[src]
&self,
count: *mut uint32_t,
keys: *mut *mut *const c_char
) -> nsresult
/**
* Returns an array of the keys.
*/
void getKeys (out uint32_t count, [array, size_is (count), retval] out string keys);
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 nsIProperties
[src]
const IID: nsIID
IID: nsIID = nsID(2019886466, 20115, 19296, [142, 133, 38, 235, 211, 235, 20, 202])
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 nsIProperties
[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 nsIProperties
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.