Struct xpcom::interfaces::nsIRDFXMLSink
[−]
[src]
#[repr(C)]pub struct nsIRDFXMLSink { /* fields omitted */ }
interface nsIRDFXMLSink : nsISupports
Methods
impl nsIRDFXMLSink
[src]
pub fn coerce<T: nsIRDFXMLSinkCoerce>(&self) -> &T
[src]
Cast this nsIRDFXMLSink
to one of its base interfaces.
impl nsIRDFXMLSink
[src]
pub unsafe fn GetReadOnly(&self, aReadOnly: *mut bool) -> nsresult
[src]
/**
* A "sink" that receives and processes RDF/XML. This interface is used
* by the RDF/XML parser.
*/
/**
* Set to <code>true</code> if the sink is read-only and cannot
* be modified
*/
attribute boolean readOnly;
pub unsafe fn SetReadOnly(&self, aReadOnly: bool) -> nsresult
[src]
/**
* A "sink" that receives and processes RDF/XML. This interface is used
* by the RDF/XML parser.
*/
/**
* Set to <code>true</code> if the sink is read-only and cannot
* be modified
*/
attribute boolean readOnly;
pub unsafe fn BeginLoad(&self) -> nsresult
[src]
/**
* Initiate the RDF/XML load.
*/
void beginLoad ();
pub unsafe fn Interrupt(&self) -> nsresult
[src]
/**
* Suspend the RDF/XML load.
*/
void interrupt ();
pub unsafe fn Resume(&self) -> nsresult
[src]
/**
* Resume the RDF/XML load.
*/
void resume ();
pub unsafe fn EndLoad(&self) -> nsresult
[src]
/**
* Complete the RDF/XML load.
*/
void endLoad ();
pub unsafe fn AddXMLSinkObserver(
&self,
aObserver: *const nsIRDFXMLSinkObserver
) -> nsresult
[src]
&self,
aObserver: *const nsIRDFXMLSinkObserver
) -> nsresult
/**
* Add an observer that will be notified as the RDF/XML load
* progresses.
* <p>
*
* Note that the sink will acquire a strong reference to the
* observer, so care should be taken to avoid cyclical references
* that cannot be released (i.e., if the observer holds a
* reference to the sink, it should be sure that it eventually
* clears the reference).
*
* @param aObserver the observer to add to the sink's set of
* load observers.
*/
void addXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver);
pub unsafe fn RemoveXMLSinkObserver(
&self,
aObserver: *const nsIRDFXMLSinkObserver
) -> nsresult
[src]
&self,
aObserver: *const nsIRDFXMLSinkObserver
) -> nsresult
/**
* Remove an observer from the sink's set of observers.
* @param aObserver the observer to remove.
*/
void removeXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver);
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 nsIRDFXMLSink
[src]
const IID: nsIID
IID: nsIID = nsID(3944373553, 43827, 4562, [142, 198, 0, 128, 95, 41, 243, 112])
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 nsIRDFXMLSink
[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 nsIRDFXMLSink
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.