pub struct Requests { /* private fields */ }Expand description
The request rules of one proxy run. Requests::default holds none.
Implementations§
Source§impl Requests
impl Requests
Sourcepub fn new(
entries: &[RequestEntry],
untrusted: Untrusted,
) -> Result<Self, RequestRuleError>
pub fn new( entries: &[RequestEntry], untrusted: Untrusted, ) -> Result<Self, RequestRuleError>
The proxy’s half of entries (every entry not marked hook_only);
a connection it cannot terminate is handled as untrusted says.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Requests
impl Freeze for Requests
impl Move for Requests
impl RefUnwindSafe for Requests
impl Send for Requests
impl Sync for Requests
impl Unpin for Requests
impl UnsafeUnpin for Requests
impl UnwindSafe for Requests
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