Struct xpcom::interfaces::nsIFeedProcessor
[−]
[src]
#[repr(C)]pub struct nsIFeedProcessor { /* fields omitted */ }
interface nsIFeedProcessor : nsIStreamListener
/**
* An nsIFeedProcessor parses feeds, triggering callbacks based on
* their contents.
*/
Methods
impl nsIFeedProcessor
[src]
pub fn coerce<T: nsIFeedProcessorCoerce>(&self) -> &T
[src]
Cast this nsIFeedProcessor
to one of its base interfaces.
impl nsIFeedProcessor
[src]
pub unsafe fn GetListener(
&self,
aListener: *mut *const nsIFeedResultListener
) -> nsresult
[src]
&self,
aListener: *mut *const nsIFeedResultListener
) -> nsresult
/**
* The listener that will respond to feed events.
*/
attribute nsIFeedResultListener listener;
pub unsafe fn SetListener(
&self,
aListener: *const nsIFeedResultListener
) -> nsresult
[src]
&self,
aListener: *const nsIFeedResultListener
) -> nsresult
/**
* The listener that will respond to feed events.
*/
attribute nsIFeedResultListener listener;
pub unsafe fn ParseFromStream(
&self,
stream: *const nsIInputStream,
uri: *const nsIURI
) -> nsresult
[src]
&self,
stream: *const nsIInputStream,
uri: *const nsIURI
) -> nsresult
/**
* Parse a feed from an nsIInputStream.
*
* @param stream The input stream.
* @param uri The base URI.
*/
void parseFromStream (in nsIInputStream stream, in nsIURI uri);
pub unsafe fn ParseFromString(
&self,
str: &nsAString,
uri: *const nsIURI
) -> nsresult
[src]
&self,
str: &nsAString,
uri: *const nsIURI
) -> nsresult
/**
* Parse a feed from a string.
*
* @param str The string to parse.
* @param uri The base URI.
*/
void parseFromString (in AString str, in nsIURI uri);
pub unsafe fn ParseAsync(
&self,
requestObserver: *const nsIRequestObserver,
uri: *const nsIURI
) -> nsresult
[src]
&self,
requestObserver: *const nsIRequestObserver,
uri: *const nsIURI
) -> nsresult
/**
* Parse a feed asynchronously. The caller must then call the
* nsIFeedProcessor's nsIStreamListener methods to drive the
* parse. Do not call the other parse methods during an asynchronous
* parse.
*
* @param requestObserver The observer to notify on start/stop. This
* argument can be null.
* @param uri The base URI.
*/
void parseAsync (in nsIRequestObserver requestObserver, in nsIURI uri);
Methods from Deref<Target = nsIStreamListener>
pub fn coerce<T: nsIStreamListenerCoerce>(&self) -> &T
[src]
Cast this nsIStreamListener
to one of its base interfaces.
pub unsafe fn OnDataAvailable(
&self,
aRequest: *const nsIRequest,
aContext: *const nsISupports,
aInputStream: *const nsIInputStream,
aOffset: uint64_t,
aCount: uint32_t
) -> nsresult
[src]
&self,
aRequest: *const nsIRequest,
aContext: *const nsISupports,
aInputStream: *const nsIInputStream,
aOffset: uint64_t,
aCount: uint32_t
) -> nsresult
/**
* Called when the next chunk of data (corresponding to the request) may
* be read without blocking the calling thread. The onDataAvailable impl
* must read exactly |aCount| bytes of data before returning.
*
* @param aRequest request corresponding to the source of the data
* @param aContext user defined context
* @param aInputStream input stream containing the data chunk
* @param aOffset
* Number of bytes that were sent in previous onDataAvailable calls
* for this request. In other words, the sum of all previous count
* parameters.
* @param aCount number of bytes available in the stream
*
* NOTE: The aInputStream parameter must implement readSegments.
*
* An exception thrown from onDataAvailable has the side-effect of
* causing the request to be canceled.
*/
void onDataAvailable (in nsIRequest aRequest, in nsISupports aContext, in nsIInputStream aInputStream, in unsigned long long aOffset, in unsigned long aCount);
Trait Implementations
impl XpCom for nsIFeedProcessor
[src]
const IID: nsIID
IID: nsIID = nsID(2315987208, 8624, 17879, [177, 77, 48, 223, 15, 146, 175, 199])
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 nsIFeedProcessor
[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 nsIFeedProcessor
[src]
type Target = nsIStreamListener
The resulting type after dereferencing.
fn deref(&self) -> &nsIStreamListener
[src]
Dereferences the value.