Struct xpcom::interfaces::nsIDirIndexParser
[−]
[src]
#[repr(C)]pub struct nsIDirIndexParser { /* fields omitted */ }
interface nsIDirIndexParser : nsIStreamListener
/**
* A parser for application/http-index-format
*/
Methods
impl nsIDirIndexParser
[src]
pub fn coerce<T: nsIDirIndexParserCoerce>(&self) -> &T
[src]
Cast this nsIDirIndexParser
to one of its base interfaces.
impl nsIDirIndexParser
[src]
pub unsafe fn GetListener(
&self,
aListener: *mut *const nsIDirIndexListener
) -> nsresult
[src]
&self,
aListener: *mut *const nsIDirIndexListener
) -> nsresult
/**
* The interface to use as a callback for new entries
*/
attribute nsIDirIndexListener listener;
pub unsafe fn SetListener(
&self,
aListener: *const nsIDirIndexListener
) -> nsresult
[src]
&self,
aListener: *const nsIDirIndexListener
) -> nsresult
/**
* The interface to use as a callback for new entries
*/
attribute nsIDirIndexListener listener;
pub unsafe fn GetComment(&self, aComment: *mut *const c_char) -> nsresult
[src]
/**
* The comment given, if any
* This result is only valid _after_ OnStopRequest has occurred,
* because it can occur anywhere in the datastream
*/
readonly attribute string comment;
pub unsafe fn GetEncoding(&self, aEncoding: *mut *const c_char) -> nsresult
[src]
/**
* The encoding to use
*/
attribute string encoding;
pub unsafe fn SetEncoding(&self, aEncoding: *const c_char) -> nsresult
[src]
/**
* The encoding to use
*/
attribute string encoding;
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 nsIDirIndexParser
[src]
const IID: nsIID
IID: nsIID = nsID(954402412, 7634, 4530, [155, 89, 139, 229, 21, 193, 238, 63])
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 nsIDirIndexParser
[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 nsIDirIndexParser
[src]
type Target = nsIStreamListener
The resulting type after dereferencing.
fn deref(&self) -> &nsIStreamListener
[src]
Dereferences the value.