Struct xpcom::interfaces::nsIWritablePropertyBag
[−]
[src]
#[repr(C)]pub struct nsIWritablePropertyBag { /* fields omitted */ }
interface nsIWritablePropertyBag : nsIPropertyBag
Methods
impl nsIWritablePropertyBag
[src]
pub fn coerce<T: nsIWritablePropertyBagCoerce>(&self) -> &T
[src]
Cast this nsIWritablePropertyBag
to one of its base interfaces.
impl nsIWritablePropertyBag
[src]
pub unsafe fn SetProperty(
&self,
name: &nsAString,
value: *const nsIVariant
) -> nsresult
[src]
&self,
name: &nsAString,
value: *const nsIVariant
) -> nsresult
/**
* Set a property with the given name to the given value. If
* a property already exists with the given name, it is
* overwritten.
*/
void setProperty (in AString name, in nsIVariant value);
pub unsafe fn DeleteProperty(&self, name: &nsAString) -> nsresult
[src]
/**
* Delete a property with the given name.
* @throws NS_ERROR_FAILURE if a property with that name doesn't
* exist.
*/
void deleteProperty (in AString name);
Methods from Deref<Target = nsIPropertyBag>
pub fn coerce<T: nsIPropertyBagCoerce>(&self) -> &T
[src]
Cast this nsIPropertyBag
to one of its base interfaces.
pub unsafe fn GetEnumerator(
&self,
aEnumerator: *mut *const nsISimpleEnumerator
) -> nsresult
[src]
&self,
aEnumerator: *mut *const nsISimpleEnumerator
) -> nsresult
/**
* Get a nsISimpleEnumerator whose elements are nsIProperty objects.
*/
readonly attribute nsISimpleEnumerator enumerator;
pub unsafe fn GetProperty(
&self,
name: &nsAString,
_retval: *mut *const nsIVariant
) -> nsresult
[src]
&self,
name: &nsAString,
_retval: *mut *const nsIVariant
) -> nsresult
/**
* Get a property value for the given name.
* @throws NS_ERROR_FAILURE if a property with that name doesn't
* exist.
*/
nsIVariant getProperty (in AString name);
Trait Implementations
impl XpCom for nsIWritablePropertyBag
[src]
const IID: nsIID
IID: nsIID = nsID(2533115505, 61108, 18467, [148, 33, 229, 15, 183, 10, 211, 83])
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 nsIWritablePropertyBag
[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 nsIWritablePropertyBag
[src]
type Target = nsIPropertyBag
The resulting type after dereferencing.
fn deref(&self) -> &nsIPropertyBag
[src]
Dereferences the value.