Struct xpcom::interfaces::nsIURLFormatter
[−]
[src]
#[repr(C)]pub struct nsIURLFormatter { /* fields omitted */ }
interface nsIURLFormatter : nsISupports
Methods
impl nsIURLFormatter
[src]
pub fn coerce<T: nsIURLFormatterCoerce>(&self) -> &T
[src]
Cast this nsIURLFormatter
to one of its base interfaces.
impl nsIURLFormatter
[src]
pub unsafe fn FormatURL(
&self,
aFormat: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aFormat: &nsAString,
_retval: &mut nsAString
) -> nsresult
/**
* formatURL - Formats a string URL
*
* The set of known variables is predefined.
* If a variable is unknown, it is left unchanged and a non-fatal error is reported.
*
* @param aFormat string Unformatted URL.
*
* @return The formatted URL.
*/
AString formatURL (in AString aFormat);
pub unsafe fn FormatURLPref(
&self,
aPref: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aPref: &nsAString,
_retval: &mut nsAString
) -> nsresult
/**
* formatURLPref - Formats a string URL stored in a preference
*
* If the preference value cannot be retrieved, a fatal error is reported
* and the "about:blank" URL is returned.
*
* @param aPref string Preference name.
*
* @return The formatted URL returned by formatURL(), or "about:blank".
*/
AString formatURLPref (in AString aPref);
pub unsafe fn TrimSensitiveURLs(
&self,
aMsg: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aMsg: &nsAString,
_retval: &mut nsAString
) -> nsresult
/**
* Remove all of the sensitive query parameter strings from URLs in |aMsg|.
*/
AString trimSensitiveURLs (in AString aMsg);
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 nsIURLFormatter
[src]
const IID: nsIID
IID: nsIID = nsID(1253252400, 14125, 4571, [169, 139, 8, 0, 32, 12, 154, 102])
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 nsIURLFormatter
[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 nsIURLFormatter
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.