Struct xpcom::interfaces::nsIProtocolProxyChannelFilter
[−]
[src]
#[repr(C)]pub struct nsIProtocolProxyChannelFilter { /* fields omitted */ }
interface nsIProtocolProxyChannelFilter : nsISupports
/**
* This interface is used to apply filters to the proxies selected for a given
* channel. Use nsIProtocolProxyService::registerChannelFilter to hook up instances of
* this interface. See also nsIProtocolProxyFilter.
*/
Methods
impl nsIProtocolProxyChannelFilter
[src]
pub fn coerce<T: nsIProtocolProxyChannelFilterCoerce>(&self) -> &T
[src]
Cast this nsIProtocolProxyChannelFilter
to one of its base interfaces.
impl nsIProtocolProxyChannelFilter
[src]
pub unsafe fn ApplyFilter(
&self,
aProxyService: *const nsIProtocolProxyService,
aChannel: *const nsIChannel,
aProxy: *const nsIProxyInfo,
_retval: *mut *const nsIProxyInfo
) -> nsresult
[src]
&self,
aProxyService: *const nsIProtocolProxyService,
aChannel: *const nsIChannel,
aProxy: *const nsIProxyInfo,
_retval: *mut *const nsIProxyInfo
) -> nsresult
/**
* This method is called to apply proxy filter rules for the given channel
* 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 aChannel
* The channel for which these proxy settings apply.
* @param aProxy
* The proxy (or list of proxies) that would be used by default for
* the given channel. 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 nsIChannel aChannel, 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 nsIProtocolProxyChannelFilter
[src]
const IID: nsIID
IID: nsIID = nsID(609945728, 33477, 20078, [190, 109, 188, 88, 106, 165, 90, 144])
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 nsIProtocolProxyChannelFilter
[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 nsIProtocolProxyChannelFilter
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.