Struct xpcom::interfaces::nsIApplicationCacheChannel  
                   
                       [−]
                   
               [src]
#[repr(C)]pub struct nsIApplicationCacheChannel { /* fields omitted */ }
interface nsIApplicationCacheChannel : nsIApplicationCacheContainer
/**
 * Interface implemented by channels that support application caches.
 */
Methods
impl nsIApplicationCacheChannel[src]
pub fn coerce<T: nsIApplicationCacheChannelCoerce>(&self) -> &T[src]
Cast this nsIApplicationCacheChannel to one of its base interfaces.
impl nsIApplicationCacheChannel[src]
pub unsafe fn GetLoadedFromApplicationCache(
    &self, 
    aLoadedFromApplicationCache: *mut bool
) -> nsresult[src]
&self,
aLoadedFromApplicationCache: *mut bool
) -> nsresult
/**
     * TRUE when the resource came from the application cache. This
     * might be false even there is assigned an application cache
     * e.g. in case of fallback of load of an entry matching bypass
     * namespace.
     */
readonly attribute boolean loadedFromApplicationCache;
pub unsafe fn GetInheritApplicationCache(
    &self, 
    aInheritApplicationCache: *mut bool
) -> nsresult[src]
&self,
aInheritApplicationCache: *mut bool
) -> nsresult
/**
     * When true, the channel will ask its notification callbacks for
     * an application cache if one is not explicitly provided.  Default
     * value is true.
     *
     * NS_ERROR_ALREADY_OPENED will be thrown if set after AsyncOpen()
     * is called.
     */
attribute boolean inheritApplicationCache;
pub unsafe fn SetInheritApplicationCache(
    &self, 
    aInheritApplicationCache: bool
) -> nsresult[src]
&self,
aInheritApplicationCache: bool
) -> nsresult
/**
     * When true, the channel will ask its notification callbacks for
     * an application cache if one is not explicitly provided.  Default
     * value is true.
     *
     * NS_ERROR_ALREADY_OPENED will be thrown if set after AsyncOpen()
     * is called.
     */
attribute boolean inheritApplicationCache;
pub unsafe fn GetChooseApplicationCache(
    &self, 
    aChooseApplicationCache: *mut bool
) -> nsresult[src]
&self,
aChooseApplicationCache: *mut bool
) -> nsresult
/**
     * When true, the channel will choose an application cache if one
     * was not explicitly provided and none is available from the
     * notification callbacks.  Default value is false.
     *
     * This attribute will not be transferred through a redirect.
     *
     * NS_ERROR_ALREADY_OPENED will be thrown if set after AsyncOpen()
     * is called.
     */
attribute boolean chooseApplicationCache;
pub unsafe fn SetChooseApplicationCache(
    &self, 
    aChooseApplicationCache: bool
) -> nsresult[src]
&self,
aChooseApplicationCache: bool
) -> nsresult
/**
     * When true, the channel will choose an application cache if one
     * was not explicitly provided and none is available from the
     * notification callbacks.  Default value is false.
     *
     * This attribute will not be transferred through a redirect.
     *
     * NS_ERROR_ALREADY_OPENED will be thrown if set after AsyncOpen()
     * is called.
     */
attribute boolean chooseApplicationCache;
pub unsafe fn MarkOfflineCacheEntryAsForeign(&self) -> nsresult[src]
/**
     * A shortcut method to mark the cache item of this channel as 'foreign'.
     * See the 'cache selection algorithm' and CACHE_SELECTION_RELOAD
     * action handling in nsContentSink.
     */
void markOfflineCacheEntryAsForeign ();
pub unsafe fn GetApplicationCacheForWrite(
    &self, 
    aApplicationCacheForWrite: *mut *const nsIApplicationCache
) -> nsresult[src]
&self,
aApplicationCacheForWrite: *mut *const nsIApplicationCache
) -> nsresult
/**
     * Set offline application cache object to instruct the channel
     * to cache for offline use using this application cache.
     */
attribute nsIApplicationCache applicationCacheForWrite;
pub unsafe fn SetApplicationCacheForWrite(
    &self, 
    aApplicationCacheForWrite: *const nsIApplicationCache
) -> nsresult[src]
&self,
aApplicationCacheForWrite: *const nsIApplicationCache
) -> nsresult
/**
     * Set offline application cache object to instruct the channel
     * to cache for offline use using this application cache.
     */
attribute nsIApplicationCache applicationCacheForWrite;
Methods from Deref<Target = nsIApplicationCacheContainer>
pub fn coerce<T: nsIApplicationCacheContainerCoerce>(&self) -> &T[src]
Cast this nsIApplicationCacheContainer to one of its base interfaces.
pub unsafe fn GetApplicationCache(
    &self, 
    aApplicationCache: *mut *const nsIApplicationCache
) -> nsresult[src]
&self,
aApplicationCache: *mut *const nsIApplicationCache
) -> nsresult
attribute nsIApplicationCache applicationCache;
pub unsafe fn SetApplicationCache(
    &self, 
    aApplicationCache: *const nsIApplicationCache
) -> nsresult[src]
&self,
aApplicationCache: *const nsIApplicationCache
) -> nsresult
attribute nsIApplicationCache applicationCache;
Trait Implementations
impl XpCom for nsIApplicationCacheChannel[src]
const IID: nsIID
IID: nsIID = nsID(1873286833, 27999, 17280, [151, 4, 5, 77, 9, 8, 207, 163])
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 nsIApplicationCacheChannel[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 nsIApplicationCacheChannel[src]
type Target = nsIApplicationCacheContainer
The resulting type after dereferencing.
fn deref(&self) -> &nsIApplicationCacheContainer[src]
Dereferences the value.