Struct xpcom::interfaces::nsIProtocolProxyFilter
[−]
[src]
#[repr(C)]pub struct nsIProtocolProxyFilter { /* fields omitted */ }
interface nsIProtocolProxyFilter : nsISupports
/**
* This interface is used to apply filters to the proxies selected for a given
* URI. Use nsIProtocolProxyService::registerFilter to hook up instances of
* this interface. See also nsIProtocolProxyChannelFilter.
*/
Methods
impl nsIProtocolProxyFilter
[src]
pub fn coerce<T: nsIProtocolProxyFilterCoerce>(&self) -> &T
[src]
Cast this nsIProtocolProxyFilter
to one of its base interfaces.
impl nsIProtocolProxyFilter
[src]
pub unsafe fn ApplyFilter(
&self,
aProxyService: *const nsIProtocolProxyService,
aURI: *const nsIURI,
aProxy: *const nsIProxyInfo,
_retval: *mut *const nsIProxyInfo
) -> nsresult
[src]
&self,
aProxyService: *const nsIProtocolProxyService,
aURI: *const nsIURI,
aProxy: *const nsIProxyInfo,
_retval: *mut *const nsIProxyInfo
) -> nsresult
/**
* This method is called to apply proxy filter rules for the given URI
* and proxy object (or list of proxy objects).
*
* @param aProxyService
* A reference to the Protocol Proxy Service. This is passed so that
* implementations may easily access methods such as newProxyInfo.
* @param aURI
* The URI for which these proxy settings apply.
* @param aProxy
* The proxy (or list of proxies) that would be used by default for
* the given URI. This may be null.
*
* @return The proxy (or list of proxies) that should be used in place of
* aProxy. This can be just be aProxy if the filter chooses not to
* modify the proxy. It can also be null to indicate that a direct
* connection should be used. Use aProxyService.newProxyInfo to
* construct nsIProxyInfo objects.
*/
nsIProxyInfo applyFilter (in nsIProtocolProxyService aProxyService, in nsIURI aURI, in nsIProxyInfo aProxy);
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 nsIProtocolProxyFilter
[src]
const IID: nsIID
IID: nsIID = nsID(4096043987, 12980, 17772, [159, 69, 183, 227, 55, 108, 176, 209])
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 nsIProtocolProxyFilter
[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 nsIProtocolProxyFilter
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.