Struct xpcom::interfaces::nsISerializationHelper
[−]
[src]
#[repr(C)]pub struct nsISerializationHelper { /* fields omitted */ }
interface nsISerializationHelper : nsISupports
Methods
impl nsISerializationHelper
[src]
pub fn coerce<T: nsISerializationHelperCoerce>(&self) -> &T
[src]
Cast this nsISerializationHelper
to one of its base interfaces.
impl nsISerializationHelper
[src]
pub unsafe fn SerializeToString(
&self,
serializable: *const nsISerializable,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
serializable: *const nsISerializable,
_retval: &mut nsACString
) -> nsresult
/**
* Serialize the object to a base64 string. This string can be later passed
* as an input to deserializeObject method.
*/
ACString serializeToString (in nsISerializable serializable);
pub unsafe fn DeserializeObject(
&self,
input: &nsACString,
_retval: *mut *const nsISupports
) -> nsresult
[src]
&self,
input: &nsACString,
_retval: *mut *const nsISupports
) -> nsresult
/**
* Takes base64 encoded string that cointains serialization of a single
* object. Most commonly, input is result of previous call to
* serializeToString.
*/
nsISupports deserializeObject (in ACString input);
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 nsISerializationHelper
[src]
const IID: nsIID
IID: nsIID = nsID(828722191, 13811, 17606, [179, 30, 55, 161, 21, 22, 230, 188])
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 nsISerializationHelper
[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 nsISerializationHelper
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.