Struct xpcom::interfaces::nsIApplicationCacheNamespace
[−]
[src]
#[repr(C)]pub struct nsIApplicationCacheNamespace { /* fields omitted */ }
interface nsIApplicationCacheNamespace : nsISupports
/**
* Application caches can store a set of namespace entries that affect
* loads from the application cache. If a load from the cache fails
* to match an exact cache entry, namespaces entries will be searched
* for a substring match, and should be applied appropriately.
*/
Methods
impl nsIApplicationCacheNamespace
[src]
pub fn coerce<T: nsIApplicationCacheNamespaceCoerce>(&self) -> &T
[src]
Cast this nsIApplicationCacheNamespace
to one of its base interfaces.
impl nsIApplicationCacheNamespace
[src]
pub const NAMESPACE_BYPASS: i64
NAMESPACE_BYPASS: i64 = 1
/**
* Items matching this namespace can be fetched from the network
* when loading from this cache. The "data" attribute is unused.
*/
pub const NAMESPACE_FALLBACK: i64
NAMESPACE_FALLBACK: i64 = 2
/**
* Items matching this namespace can be fetched from the network
* when loading from this cache. If the load fails, the cache entry
* specified by the "data" attribute should be loaded instead.
*/
pub const NAMESPACE_OPPORTUNISTIC: i64
NAMESPACE_OPPORTUNISTIC: i64 = 4
/**
* Items matching this namespace should be cached
* opportunistically. Successful toplevel loads of documents
* in this namespace should be placed in the application cache.
* Namespaces specifying NAMESPACE_OPPORTUNISTIC may also specify
* NAMESPACE_FALLBACK to supply a fallback entry.
*/
pub unsafe fn Init(
&self,
itemType: uint32_t,
namespaceSpec: &nsACString,
data: &nsACString
) -> nsresult
[src]
&self,
itemType: uint32_t,
namespaceSpec: &nsACString,
data: &nsACString
) -> nsresult
/**
* Initialize the namespace.
*/
void init (in unsigned long itemType, in ACString namespaceSpec, in ACString data);
pub unsafe fn GetItemType(&self, aItemType: *mut uint32_t) -> nsresult
[src]
/**
* The namespace type.
*/
readonly attribute unsigned long itemType;
pub unsafe fn GetNamespaceSpec(
&self,
aNamespaceSpec: &mut nsACString
) -> nsresult
[src]
&self,
aNamespaceSpec: &mut nsACString
) -> nsresult
/**
* The prefix of this namespace. This should be the asciiSpec of the
* URI prefix.
*/
readonly attribute ACString namespaceSpec;
pub unsafe fn GetData(&self, aData: &mut nsACString) -> nsresult
[src]
/**
* Data associated with this namespace, such as a fallback. URI data should
* use the asciiSpec of the URI.
*/
readonly attribute ACString data;
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 nsIApplicationCacheNamespace
[src]
const IID: nsIID
IID: nsIID = nsID(2531574372, 8293, 19689, [147, 187, 67, 115, 76, 98, 196, 235])
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 nsIApplicationCacheNamespace
[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 nsIApplicationCacheNamespace
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.