pub struct ProxyState {
pub runtime: ArcSwap<RuntimeState>,
pub sessions: Cache<String, ()>,
pub whitelist: Cache<IpAddr, ()>,
pub blacklist: ArcSwap<Cache<IpAddr, ()>>,
pub ip_limits: Cache<IpAddr, u8>,
pub last_verified_step: AtomicU64,
}Fields§
§runtime: ArcSwap<RuntimeState>§sessions: Cache<String, ()>§whitelist: Cache<IpAddr, ()>§blacklist: ArcSwap<Cache<IpAddr, ()>>§ip_limits: Cache<IpAddr, u8>§last_verified_step: AtomicU64Auto Trait Implementations§
impl !Freeze for ProxyState
impl !RefUnwindSafe for ProxyState
impl Send for ProxyState
impl Sync for ProxyState
impl Unpin for ProxyState
impl !UnwindSafe for ProxyState
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