Struct xpcom::interfaces::nsIUrlClassifierPrefixSet
[−]
[src]
#[repr(C)]pub struct nsIUrlClassifierPrefixSet { /* fields omitted */ }
interface nsIUrlClassifierPrefixSet : nsISupports
Methods
impl nsIUrlClassifierPrefixSet
[src]
pub fn coerce<T: nsIUrlClassifierPrefixSetCoerce>(&self) -> &T
[src]
Cast this nsIUrlClassifierPrefixSet
to one of its base interfaces.
impl nsIUrlClassifierPrefixSet
[src]
pub unsafe fn Init(&self, aName: &nsACString) -> nsresult
[src]
void init (in ACString aName);
pub unsafe fn SetPrefixes(
&self,
aPrefixes: *const uint32_t,
aLength: uint32_t
) -> nsresult
[src]
&self,
aPrefixes: *const uint32_t,
aLength: uint32_t
) -> nsresult
void setPrefixes ([array, size_is (aLength), const] in unsigned long aPrefixes, in unsigned long aLength);
pub unsafe fn GetPrefixes(
&self,
aCount: *mut uint32_t,
aPrefixes: *mut *mut uint32_t
) -> nsresult
[src]
&self,
aCount: *mut uint32_t,
aPrefixes: *mut *mut uint32_t
) -> nsresult
void getPrefixes (out unsigned long aCount, [array, size_is (aCount), retval] out unsigned long aPrefixes);
pub unsafe fn Contains(&self, aPrefix: uint32_t, _retval: *mut bool) -> nsresult
[src]
boolean contains (in unsigned long aPrefix);
pub unsafe fn IsEmpty(&self, _retval: *mut bool) -> nsresult
[src]
boolean isEmpty ();
pub unsafe fn LoadFromFile(&self, aFile: *const nsIFile) -> nsresult
[src]
void loadFromFile (in nsIFile aFile);
pub unsafe fn StoreToFile(&self, aFile: *const nsIFile) -> nsresult
[src]
void storeToFile (in nsIFile aFile);
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 nsIUrlClassifierPrefixSet
[src]
const IID: nsIID
IID: nsIID = nsID(1032157680, 30202, 19968, [186, 65, 56, 102, 29, 91, 93, 23])
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 nsIUrlClassifierPrefixSet
[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 nsIUrlClassifierPrefixSet
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.