Struct xpcom::interfaces::nsIUUIDGenerator
[−]
[src]
#[repr(C)]pub struct nsIUUIDGenerator { /* fields omitted */ }
interface nsIUUIDGenerator : nsISupports
/**
* nsIUUIDGenerator is implemented by a service that can generate
* universally unique identifiers, ideally using any platform-native
* method for generating UUIDs.
*/
Methods
impl nsIUUIDGenerator
[src]
pub fn coerce<T: nsIUUIDGeneratorCoerce>(&self) -> &T
[src]
Cast this nsIUUIDGenerator
to one of its base interfaces.
impl nsIUUIDGenerator
[src]
pub unsafe fn GenerateUUID(&self, _retval: *mut *mut nsID) -> nsresult
[src]
/**
* Obtains a new UUID using appropriate platform-specific methods to
* obtain a nsID that can be considered to be globally unique.
*
* @returns an nsID filled in with a new UUID.
*
* @throws NS_ERROR_FAILURE if a UUID cannot be generated (e.g. if
* an underlying source of randomness is not available)
*/
nsIDPtr generateUUID ();
pub unsafe fn GenerateUUIDInPlace(&self, id: *mut nsID) -> nsresult
[src]
/**
* Obtain a new UUID like the generateUUID method, but place it in
* the provided nsID pointer instead of allocating a new nsID.
*
* @param id an existing nsID pointer where the UUID will be stored.
*
* @throws NS_ERROR_FAILURE if a UUID cannot be generated (e.g. if
* an underlying source of randomness is not available)
*/
[noscript] void generateUUIDInPlace (in nsNonConstIDPtr id);
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 nsIUUIDGenerator
[src]
const IID: nsIID
IID: nsIID = nsID(327864754, 50836, 16844, [178, 1, 51, 60, 233, 54, 216, 184])
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 nsIUUIDGenerator
[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 nsIUUIDGenerator
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.