Struct xpcom::interfaces::nsICookie
[−]
[src]
#[repr(C)]pub struct nsICookie { /* fields omitted */ }
interface nsICookie : nsISupports
Methods
impl nsICookie
[src]
pub fn coerce<T: nsICookieCoerce>(&self) -> &T
[src]
Cast this nsICookie
to one of its base interfaces.
impl nsICookie
[src]
pub const STATUS_UNKNOWN: i64
STATUS_UNKNOWN: i64 = 0
/**
* @DEPRECATED status implementation will return STATUS_UNKNOWN in all cases.
*/
pub const STATUS_ACCEPTED: i64
STATUS_ACCEPTED: i64 = 1
pub const STATUS_DOWNGRADED: i64
STATUS_DOWNGRADED: i64 = 2
pub const STATUS_FLAGGED: i64
STATUS_FLAGGED: i64 = 3
pub const STATUS_REJECTED: i64
STATUS_REJECTED: i64 = 4
pub const POLICY_UNKNOWN: i64
POLICY_UNKNOWN: i64 = 0
/**
* @DEPRECATED policy implementation will return POLICY_UNKNOWN in all cases.
*/
pub const POLICY_NONE: i64
POLICY_NONE: i64 = 1
pub const POLICY_NO_CONSENT: i64
POLICY_NO_CONSENT: i64 = 2
pub const POLICY_IMPLICIT_CONSENT: i64
POLICY_IMPLICIT_CONSENT: i64 = 3
pub const POLICY_EXPLICIT_CONSENT: i64
POLICY_EXPLICIT_CONSENT: i64 = 4
pub const POLICY_NO_II: i64
POLICY_NO_II: i64 = 5
pub unsafe fn GetName(&self, aName: &mut nsACString) -> nsresult
[src]
/**
* the name of the cookie
*/
readonly attribute ACString name;
pub unsafe fn GetValue(&self, aValue: &mut nsACString) -> nsresult
[src]
/**
* the cookie value
*/
readonly attribute AUTF8String value;
pub unsafe fn GetIsDomain(&self, aIsDomain: *mut bool) -> nsresult
[src]
/**
* true if the cookie is a domain cookie, false otherwise
*/
readonly attribute boolean isDomain;
pub unsafe fn GetHost(&self, aHost: &mut nsACString) -> nsresult
[src]
/**
* the host (possibly fully qualified) of the cookie
*/
readonly attribute AUTF8String host;
pub unsafe fn GetPath(&self, aPath: &mut nsACString) -> nsresult
[src]
/**
* the path pertaining to the cookie
*/
readonly attribute AUTF8String path;
pub unsafe fn GetIsSecure(&self, aIsSecure: *mut bool) -> nsresult
[src]
/**
* true if the cookie was transmitted over ssl, false otherwise
*/
readonly attribute boolean isSecure;
pub unsafe fn GetExpires(&self, aExpires: *mut uint64_t) -> nsresult
[src]
/**
* @DEPRECATED use nsICookie2.expiry and nsICookie2.isSession instead.
*
* expiration time in seconds since midnight (00:00:00), January 1, 1970 UTC.
* expires = 0 represents a session cookie.
* expires = 1 represents an expiration time earlier than Jan 1, 1970.
*/
readonly attribute uint64_t expires;
pub unsafe fn GetStatus(&self, aStatus: *mut nsCookieStatus) -> nsresult
[src]
readonly attribute nsCookieStatus status;
pub unsafe fn GetPolicy(&self, aPolicy: *mut nsCookiePolicy) -> nsresult
[src]
readonly attribute nsCookiePolicy policy;
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 nsICookie
[src]
const IID: nsIID
IID: nsIID = nsID(2918243166, 8478, 17827, [190, 20, 68, 134, 172, 67, 10, 88])
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 nsICookie
[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 nsICookie
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.