pub struct Rules {
pub allow: Vec<HostPort>,
pub user: Vec<UserHost>,
pub loopback: bool,
pub upstream: Option<Upstream>,
pub limits: Limits,
}Expand description
What the proxy allows and how.
Fields§
§allow: Vec<HostPort>The manifest’s entries: public names only.
user: Vec<UserHost>Hosts the user named: names that may resolve to private addresses, and IP addresses.
loopback: boolThe user’s hosts may also be loopback and this machine’s own addresses.
upstream: Option<Upstream>§limits: LimitsTrait Implementations§
Auto Trait Implementations§
impl Forget for Rules
impl Freeze for Ruleswhere
*const u8 is !null: Freeze,
PhantomData<HostPort>: Freeze,
PhantomData<UserHost>: Freeze,
PhantomData<u8>: Freeze,
impl Move for Rules
impl RefUnwindSafe for Rules
impl Send for Ruleswhere
RawVecInner: Send,
impl Sync for Ruleswhere
RawVecInner: Sync,
impl Unpin for Rules
impl UnsafeUnpin for Ruleswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<HostPort>: UnsafeUnpin,
PhantomData<UserHost>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Ruleswhere
RawVecInner: UnwindSafe,
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