Struct xpcom::interfaces::nsIFeedResult
[−]
[src]
#[repr(C)]pub struct nsIFeedResult { /* fields omitted */ }
interface nsIFeedResult : nsISupports
/**
* The nsIFeedResult interface provides access to HTTP and parsing
* metadata for a feed or entry.
*/
Methods
impl nsIFeedResult
[src]
pub fn coerce<T: nsIFeedResultCoerce>(&self) -> &T
[src]
Cast this nsIFeedResult
to one of its base interfaces.
impl nsIFeedResult
[src]
pub unsafe fn GetBozo(&self, aBozo: *mut bool) -> nsresult
[src]
/**
* The Feed parser will set the bozo bit when a feed triggers a fatal
* error during XML parsing. There may be entries and feed metadata
* that were parsed before the error. Thanks to Tim Bray for
* suggesting this terminology.
* <http://www.tbray.org/ongoing/When/200x/2004/01/11/PostelPilgrim>
*/
attribute boolean bozo;
pub unsafe fn SetBozo(&self, aBozo: bool) -> nsresult
[src]
/**
* The Feed parser will set the bozo bit when a feed triggers a fatal
* error during XML parsing. There may be entries and feed metadata
* that were parsed before the error. Thanks to Tim Bray for
* suggesting this terminology.
* <http://www.tbray.org/ongoing/When/200x/2004/01/11/PostelPilgrim>
*/
attribute boolean bozo;
pub unsafe fn GetDoc(&self, aDoc: *mut *const nsIFeedContainer) -> nsresult
[src]
/**
* The parsed feed or entry.
*
* Will be null if a non-feed is processed.
*/
attribute nsIFeedContainer doc;
pub unsafe fn SetDoc(&self, aDoc: *const nsIFeedContainer) -> nsresult
[src]
/**
* The parsed feed or entry.
*
* Will be null if a non-feed is processed.
*/
attribute nsIFeedContainer doc;
pub unsafe fn GetUri(&self, aUri: *mut *const nsIURI) -> nsresult
[src]
/**
* The address from which the feed was fetched.
*/
attribute nsIURI uri;
pub unsafe fn SetUri(&self, aUri: *const nsIURI) -> nsresult
[src]
/**
* The address from which the feed was fetched.
*/
attribute nsIURI uri;
pub unsafe fn GetVersion(&self, aVersion: &mut nsAString) -> nsresult
[src]
/**
* Feed Version:
* atom, rss2, rss09, rss091, rss091userland, rss092, rss1, atom03,
* atomEntry, rssItem
*
* Will be null if a non-feed is processed.
*/
attribute AString version;
pub unsafe fn SetVersion(&self, aVersion: &nsAString) -> nsresult
[src]
/**
* Feed Version:
* atom, rss2, rss09, rss091, rss091userland, rss092, rss1, atom03,
* atomEntry, rssItem
*
* Will be null if a non-feed is processed.
*/
attribute AString version;
pub unsafe fn GetStylesheet(&self, aStylesheet: *mut *const nsIURI) -> nsresult
[src]
/**
* An XSLT stylesheet available to transform the source of the
* feed. Some feeds include this information in a processing
* instruction. It's generally intended for clients with specific
* feed capabilities.
*/
attribute nsIURI stylesheet;
pub unsafe fn SetStylesheet(&self, aStylesheet: *const nsIURI) -> nsresult
[src]
/**
* An XSLT stylesheet available to transform the source of the
* feed. Some feeds include this information in a processing
* instruction. It's generally intended for clients with specific
* feed capabilities.
*/
attribute nsIURI stylesheet;
pub unsafe fn GetHeaders(&self, aHeaders: *mut *const nsIProperties) -> nsresult
[src]
/**
* HTTP response headers that accompanied the feed.
*/
attribute nsIProperties headers;
pub unsafe fn SetHeaders(&self, aHeaders: *const nsIProperties) -> nsresult
[src]
/**
* HTTP response headers that accompanied the feed.
*/
attribute nsIProperties headers;
pub unsafe fn RegisterExtensionPrefix(
&self,
aNamespace: &nsAString,
aPrefix: &nsAString
) -> nsresult
[src]
&self,
aNamespace: &nsAString,
aPrefix: &nsAString
) -> nsresult
/**
* Registers a prefix used to access an extension in the feed/entry
*/
void registerExtensionPrefix (in AString aNamespace, in AString aPrefix);
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 nsIFeedResult
[src]
const IID: nsIID
IID: nsIID = nsID(2048396152, 3910, 17769, [140, 34, 243, 215, 32, 234, 28, 87])
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 nsIFeedResult
[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 nsIFeedResult
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.