Struct xpcom::interfaces::nsIWritablePropertyBag2
[−]
[src]
#[repr(C)]pub struct nsIWritablePropertyBag2 { /* fields omitted */ }
interface nsIWritablePropertyBag2 : nsIPropertyBag2
Methods
impl nsIWritablePropertyBag2
[src]
pub fn coerce<T: nsIWritablePropertyBag2Coerce>(&self) -> &T
[src]
Cast this nsIWritablePropertyBag2
to one of its base interfaces.
impl nsIWritablePropertyBag2
[src]
pub unsafe fn SetPropertyAsInt32(
&self,
prop: &nsAString,
value: int32_t
) -> nsresult
[src]
&self,
prop: &nsAString,
value: int32_t
) -> nsresult
void setPropertyAsInt32 (in AString prop, in int32_t value);
pub unsafe fn SetPropertyAsUint32(
&self,
prop: &nsAString,
value: uint32_t
) -> nsresult
[src]
&self,
prop: &nsAString,
value: uint32_t
) -> nsresult
void setPropertyAsUint32 (in AString prop, in uint32_t value);
pub unsafe fn SetPropertyAsInt64(
&self,
prop: &nsAString,
value: int64_t
) -> nsresult
[src]
&self,
prop: &nsAString,
value: int64_t
) -> nsresult
void setPropertyAsInt64 (in AString prop, in int64_t value);
pub unsafe fn SetPropertyAsUint64(
&self,
prop: &nsAString,
value: uint64_t
) -> nsresult
[src]
&self,
prop: &nsAString,
value: uint64_t
) -> nsresult
void setPropertyAsUint64 (in AString prop, in uint64_t value);
pub unsafe fn SetPropertyAsDouble(
&self,
prop: &nsAString,
value: c_double
) -> nsresult
[src]
&self,
prop: &nsAString,
value: c_double
) -> nsresult
void setPropertyAsDouble (in AString prop, in double value);
pub unsafe fn SetPropertyAsAString(
&self,
prop: &nsAString,
value: &nsAString
) -> nsresult
[src]
&self,
prop: &nsAString,
value: &nsAString
) -> nsresult
void setPropertyAsAString (in AString prop, in AString value);
pub unsafe fn SetPropertyAsACString(
&self,
prop: &nsAString,
value: &nsACString
) -> nsresult
[src]
&self,
prop: &nsAString,
value: &nsACString
) -> nsresult
void setPropertyAsACString (in AString prop, in ACString value);
pub unsafe fn SetPropertyAsAUTF8String(
&self,
prop: &nsAString,
value: &nsACString
) -> nsresult
[src]
&self,
prop: &nsAString,
value: &nsACString
) -> nsresult
void setPropertyAsAUTF8String (in AString prop, in AUTF8String value);
pub unsafe fn SetPropertyAsBool(
&self,
prop: &nsAString,
value: bool
) -> nsresult
[src]
&self,
prop: &nsAString,
value: bool
) -> nsresult
void setPropertyAsBool (in AString prop, in boolean value);
pub unsafe fn SetPropertyAsInterface(
&self,
prop: &nsAString,
value: *const nsISupports
) -> nsresult
[src]
&self,
prop: &nsAString,
value: *const nsISupports
) -> nsresult
void setPropertyAsInterface (in AString prop, in nsISupports value);
Methods from Deref<Target = nsIPropertyBag2>
pub fn coerce<T: nsIPropertyBag2Coerce>(&self) -> &T
[src]
Cast this nsIPropertyBag2
to one of its base interfaces.
pub unsafe fn GetPropertyAsInt32(
&self,
prop: &nsAString,
_retval: *mut int32_t
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: *mut int32_t
) -> nsresult
int32_t getPropertyAsInt32 (in AString prop);
pub unsafe fn GetPropertyAsUint32(
&self,
prop: &nsAString,
_retval: *mut uint32_t
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: *mut uint32_t
) -> nsresult
uint32_t getPropertyAsUint32 (in AString prop);
pub unsafe fn GetPropertyAsInt64(
&self,
prop: &nsAString,
_retval: *mut int64_t
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: *mut int64_t
) -> nsresult
int64_t getPropertyAsInt64 (in AString prop);
pub unsafe fn GetPropertyAsUint64(
&self,
prop: &nsAString,
_retval: *mut uint64_t
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: *mut uint64_t
) -> nsresult
uint64_t getPropertyAsUint64 (in AString prop);
pub unsafe fn GetPropertyAsDouble(
&self,
prop: &nsAString,
_retval: *mut c_double
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: *mut c_double
) -> nsresult
double getPropertyAsDouble (in AString prop);
pub unsafe fn GetPropertyAsAString(
&self,
prop: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: &mut nsAString
) -> nsresult
AString getPropertyAsAString (in AString prop);
pub unsafe fn GetPropertyAsACString(
&self,
prop: &nsAString,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: &mut nsACString
) -> nsresult
ACString getPropertyAsACString (in AString prop);
pub unsafe fn GetPropertyAsAUTF8String(
&self,
prop: &nsAString,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: &mut nsACString
) -> nsresult
AUTF8String getPropertyAsAUTF8String (in AString prop);
pub unsafe fn GetPropertyAsBool(
&self,
prop: &nsAString,
_retval: *mut bool
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: *mut bool
) -> nsresult
boolean getPropertyAsBool (in AString prop);
pub unsafe fn GetPropertyAsInterface(
&self,
prop: &nsAString,
iid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
prop: &nsAString,
iid: &nsIID,
result: *mut *mut c_void
) -> nsresult
/**
* This method returns null if the value exists, but is null.
*/
void getPropertyAsInterface (in AString prop, in nsIIDRef iid, [iid_is (iid), retval] out nsQIResult result);
pub unsafe fn Get(
&self,
prop: &nsAString,
_retval: *mut *const nsIVariant
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: *mut *const nsIVariant
) -> nsresult
/**
* This method returns null if the value does not exist,
* or exists but is null.
*/
nsIVariant get (in AString prop);
pub unsafe fn HasKey(&self, prop: &nsAString, _retval: *mut bool) -> nsresult
[src]
/**
* Check for the existence of a key.
*/
boolean hasKey (in AString prop);
Trait Implementations
impl XpCom for nsIWritablePropertyBag2
[src]
const IID: nsIID
IID: nsIID = nsID(2633831815, 13838, 18775, [165, 143, 76, 43, 28, 94, 126, 217])
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 nsIWritablePropertyBag2
[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 nsIWritablePropertyBag2
[src]
type Target = nsIPropertyBag2
The resulting type after dereferencing.
fn deref(&self) -> &nsIPropertyBag2
[src]
Dereferences the value.