pub struct ReloadCommand { /* private fields */ }Available on crate features
Page and Debugger and DOM and IO and Network and Runtime only.Expand description
Reloads given page optionally ignoring the cache.
Implementations§
Source§impl ReloadCommand
impl ReloadCommand
pub fn new( ignore_cache: Option<bool>, script_to_evaluate_on_load: Option<String>, ) -> Self
Sourcepub fn ignore_cache(&self) -> Option<&bool>
pub fn ignore_cache(&self) -> Option<&bool>
If true, browser cache is ignored (as if the user pressed Shift+refresh).
Sourcepub fn script_to_evaluate_on_load(&self) -> Option<&String>
pub fn script_to_evaluate_on_load(&self) -> Option<&String>
If set, the script will be injected into all frames of the inspected page after reload. Argument will be ignored if reloading dataURL origin.
Trait Implementations§
Source§impl Clone for ReloadCommand
impl Clone for ReloadCommand
Source§fn clone(&self) -> ReloadCommand
fn clone(&self) -> ReloadCommand
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 ReloadCommand
impl Command for ReloadCommand
Source§impl Debug for ReloadCommand
impl Debug for ReloadCommand
Source§impl<'de> Deserialize<'de> for ReloadCommand
impl<'de> Deserialize<'de> for ReloadCommand
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 ReloadCommand
impl RefUnwindSafe for ReloadCommand
impl Send for ReloadCommand
impl Sync for ReloadCommand
impl Unpin for ReloadCommand
impl UnwindSafe for ReloadCommand
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