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]

[src]

Cast this nsIUUIDGenerator to one of its base interfaces.

impl nsIUUIDGenerator
[src]

[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 ();

[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>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIUUIDGenerator
[src]

IID: nsIID = nsID(327864754, 50836, 16844, [178, 1, 51, 60, 233, 54, 216, 184])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIUUIDGenerator
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.