pub struct EnableCommand { /* private fields */ }Available on crate features
Fetch and Network and IO and Page only.Expand description
Enables issuing of requestPaused events. A request will be paused until client calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth.
Implementations§
Source§impl EnableCommand
impl EnableCommand
pub fn new( patterns: Option<Vec<RequestPattern>>, handle_auth_requests: Option<bool>, ) -> Self
Sourcepub fn patterns(&self) -> Option<&Vec<RequestPattern>>
pub fn patterns(&self) -> Option<&Vec<RequestPattern>>
If specified, only requests matching any of these patterns will produce fetchRequested event and will be paused until clients response. If not set, all requests will be affected.
Sourcepub fn handle_auth_requests(&self) -> Option<&bool>
pub fn handle_auth_requests(&self) -> Option<&bool>
If true, authRequired events will be issued and requests will be paused expecting a call to continueWithAuth.
Trait Implementations§
Source§impl Clone for EnableCommand
impl Clone for EnableCommand
Source§fn clone(&self) -> EnableCommand
fn clone(&self) -> EnableCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Command for EnableCommand
impl Command for EnableCommand
Source§impl Debug for EnableCommand
impl Debug for EnableCommand
Source§impl<'de> Deserialize<'de> for EnableCommand
impl<'de> Deserialize<'de> for EnableCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EnableCommand
impl RefUnwindSafe for EnableCommand
impl Send for EnableCommand
impl Sync for EnableCommand
impl Unpin for EnableCommand
impl UnwindSafe for EnableCommand
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