pub struct DirectLease;Expand description
A no-op ProxyLease for use when no proxy is configured.
All methods are no-ops. Use this as the lease type in ProxySource
implementations that do not need circuit-breaker tracking.
§Example
use stygian_browser::proxy::{ProxyLease, DirectLease};
let lease = DirectLease;
lease.mark_success(); // no-opTrait Implementations§
Source§impl ProxyLease for DirectLease
impl ProxyLease for DirectLease
Source§fn mark_success(&self)
fn mark_success(&self)
Record that the browser session using this proxy completed successfully.
Auto Trait Implementations§
impl Freeze for DirectLease
impl RefUnwindSafe for DirectLease
impl Send for DirectLease
impl Sync for DirectLease
impl Unpin for DirectLease
impl UnsafeUnpin for DirectLease
impl UnwindSafe for DirectLease
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more