Struct xpcom::interfaces::nsIURISetters
[−]
[src]
#[repr(C)]pub struct nsIURISetters { /* fields omitted */ }
interface nsIURISetters : nsIURISetSpec
/**
* These methods allow the mutator to change various parts of the URI.
* They return the same nsIURIMutator so that we may chain setter operations:
* Example:
* let newURI = uri.mutate()
* .setSpec("http://example.com")
* .setQuery("hello")
* .finalize();
*/
Methods
impl nsIURISetters
[src]
pub fn coerce<T: nsIURISettersCoerce>(&self) -> &T
[src]
Cast this nsIURISetters
to one of its base interfaces.
impl nsIURISetters
[src]
pub unsafe fn SetScheme(
&self,
aScheme: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[src]
&self,
aScheme: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[must_use] nsIURIMutator setScheme (in AUTF8String aScheme);
pub unsafe fn SetUserPass(
&self,
aUserPass: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[src]
&self,
aUserPass: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[must_use] nsIURIMutator setUserPass (in AUTF8String aUserPass);
pub unsafe fn SetUsername(
&self,
aUsername: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[src]
&self,
aUsername: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[must_use] nsIURIMutator setUsername (in AUTF8String aUsername);
pub unsafe fn SetPassword(
&self,
aPassword: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[src]
&self,
aPassword: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[must_use] nsIURIMutator setPassword (in AUTF8String aPassword);
pub unsafe fn SetHostPort(
&self,
aHostPort: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[src]
&self,
aHostPort: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[must_use] nsIURIMutator setHostPort (in AUTF8String aHostPort);
pub unsafe fn SetHostAndPort(
&self,
aHostAndPort: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[src]
&self,
aHostAndPort: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[must_use] nsIURIMutator setHostAndPort (in AUTF8String aHostAndPort);
pub unsafe fn SetHost(
&self,
aHost: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[src]
&self,
aHost: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[must_use] nsIURIMutator setHost (in AUTF8String aHost);
pub unsafe fn SetPort(
&self,
aPort: int32_t,
_retval: *mut *const nsIURIMutator
) -> nsresult
[src]
&self,
aPort: int32_t,
_retval: *mut *const nsIURIMutator
) -> nsresult
[must_use] nsIURIMutator setPort (in long aPort);
pub unsafe fn SetPathQueryRef(
&self,
aPathQueryRef: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[src]
&self,
aPathQueryRef: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[must_use] nsIURIMutator setPathQueryRef (in AUTF8String aPathQueryRef);
pub unsafe fn SetRef(
&self,
aRef: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[src]
&self,
aRef: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[must_use] nsIURIMutator setRef (in AUTF8String aRef);
pub unsafe fn SetFilePath(
&self,
aFilePath: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[src]
&self,
aFilePath: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[must_use] nsIURIMutator setFilePath (in AUTF8String aFilePath);
pub unsafe fn SetQuery(
&self,
aQuery: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[src]
&self,
aQuery: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[must_use] nsIURIMutator setQuery (in AUTF8String aQuery);
Methods from Deref<Target = nsIURISetSpec>
pub fn coerce<T: nsIURISetSpecCoerce>(&self) -> &T
[src]
Cast this nsIURISetSpec
to one of its base interfaces.
pub unsafe fn SetSpec(
&self,
aSpec: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
[src]
&self,
aSpec: &nsACString,
_retval: *mut *const nsIURIMutator
) -> nsresult
/**
* This setter is different from all other setters because it may be used to
* initialize the object. We define it separately allowing mutator implementors
* to define it separately, while the rest of the setters may be simply
* forwarded to the mutable URI.
*/
[must_use] nsIURIMutator setSpec (in AUTF8String aSpec);
Trait Implementations
impl XpCom for nsIURISetters
[src]
const IID: nsIID
IID: nsIID = nsID(1409525484, 39383, 16478, [139, 69, 159, 128, 91, 189, 252, 239])
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 nsIURISetters
[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 nsIURISetters
[src]
type Target = nsIURISetSpec
The resulting type after dereferencing.
fn deref(&self) -> &nsIURISetSpec
[src]
Dereferences the value.