pub struct LimitationProbe {
pub id: LimitationId,
pub description: &'static str,
pub script: &'static str,
}Expand description
A runtime probe for a visible browser surface we do not yet fully cover.
Fields§
§id: LimitationIdStable identifier.
description: &'static strHuman-readable description.
script: &'static strJavaScript expression returning a JSON string with shape
'{"limited":true|false,"details":"..."}'.
Implementations§
Source§impl LimitationProbe
impl LimitationProbe
Sourcepub fn parse_output(&self, json: &str) -> Option<KnownLimitation>
pub fn parse_output(&self, json: &str) -> Option<KnownLimitation>
Parse the JSON string returned by the CDP evaluation of script.
Auto Trait Implementations§
impl Freeze for LimitationProbe
impl RefUnwindSafe for LimitationProbe
impl Send for LimitationProbe
impl Sync for LimitationProbe
impl Unpin for LimitationProbe
impl UnsafeUnpin for LimitationProbe
impl UnwindSafe for LimitationProbe
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