Struct xpcom::interfaces::nsIProfileLock
[−]
[src]
#[repr(C)]pub struct nsIProfileLock { /* fields omitted */ }
interface nsIProfileLock : nsISupports
/**
* Hold on to a profile lock. Once you release the last reference to this
* interface, the profile lock is released.
*/
Methods
impl nsIProfileLock
[src]
pub fn coerce<T: nsIProfileLockCoerce>(&self) -> &T
[src]
Cast this nsIProfileLock
to one of its base interfaces.
impl nsIProfileLock
[src]
pub unsafe fn GetDirectory(&self, aDirectory: *mut *const nsIFile) -> nsresult
[src]
/**
* The main profile directory.
*/
readonly attribute nsIFile directory;
pub unsafe fn GetLocalDirectory(
&self,
aLocalDirectory: *mut *const nsIFile
) -> nsresult
[src]
&self,
aLocalDirectory: *mut *const nsIFile
) -> nsresult
/**
* A directory corresponding to the main profile directory that exists for
* the purpose of storing data on the local filesystem, including cache
* files or other data files that may not represent critical user data.
* (e.g., this directory may not be included as part of a backup scheme.)
*
* In some cases, this directory may just be the main profile directory.
*/
readonly attribute nsIFile localDirectory;
pub unsafe fn GetReplacedLockTime(
&self,
aReplacedLockTime: *mut PRTime
) -> nsresult
[src]
&self,
aReplacedLockTime: *mut PRTime
) -> nsresult
/**
* The timestamp of an existing profile lock at lock time.
*/
readonly attribute PRTime replacedLockTime;
pub unsafe fn Unlock(&self) -> nsresult
[src]
/**
* Unlock the profile.
*/
void unlock ();
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 nsIProfileLock
[src]
const IID: nsIID
IID: nsIID = nsID(2086192899, 53829, 18532, [141, 117, 150, 72, 202, 74, 97, 57])
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 nsIProfileLock
[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 nsIProfileLock
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.