Skip to main content

NetworkCommands

Enum NetworkCommands 

Source
pub enum NetworkCommands {
Show 33 variants SetAcceptedEncodings(SetAcceptedEncodings), ClearAcceptedEncodingsOverride(ClearAcceptedEncodingsOverride), ClearBrowserCache(ClearBrowserCache), ClearBrowserCookies(ClearBrowserCookies), DeleteCookies(DeleteCookies), Disable(Disable), EmulateNetworkConditionsByRule(EmulateNetworkConditionsByRule), OverrideNetworkState(OverrideNetworkState), Enable(Enable), ConfigureDurableMessages(ConfigureDurableMessages), GetCertificate(GetCertificate), GetCookies(GetCookies), GetResponseBody(GetResponseBody), GetRequestPostData(GetRequestPostData), GetResponseBodyForInterception(GetResponseBodyForInterception), TakeResponseBodyForInterceptionAsStream(TakeResponseBodyForInterceptionAsStream), ReplayXhr(ReplayXhr), SearchInResponseBody(SearchInResponseBody), SetBlockedUrLs(SetBlockedUrLs), SetBypassServiceWorker(SetBypassServiceWorker), SetCacheDisabled(SetCacheDisabled), SetCookie(SetCookie), SetCookies(SetCookies), SetExtraHttpHeaders(SetExtraHttpHeaders), SetAttachDebugStack(SetAttachDebugStack), SetUserAgentOverride(SetUserAgentOverride), StreamResourceContent(StreamResourceContent), GetSecurityIsolationStatus(GetSecurityIsolationStatus), EnableReportingApi(EnableReportingApi), EnableDeviceBoundSessions(EnableDeviceBoundSessions), FetchSchemefulSite(FetchSchemefulSite), LoadNetworkResource(LoadNetworkResource), SetCookieControls(SetCookieControls),
}

Variants§

§

SetAcceptedEncodings(SetAcceptedEncodings)

§

ClearAcceptedEncodingsOverride(ClearAcceptedEncodingsOverride)

§

ClearBrowserCache(ClearBrowserCache)

§

ClearBrowserCookies(ClearBrowserCookies)

§

DeleteCookies(DeleteCookies)

§

Disable(Disable)

§

EmulateNetworkConditionsByRule(EmulateNetworkConditionsByRule)

§

OverrideNetworkState(OverrideNetworkState)

§

Enable(Enable)

§

ConfigureDurableMessages(ConfigureDurableMessages)

§

GetCertificate(GetCertificate)

§

GetCookies(GetCookies)

§

GetResponseBody(GetResponseBody)

§

GetRequestPostData(GetRequestPostData)

§

GetResponseBodyForInterception(GetResponseBodyForInterception)

§

TakeResponseBodyForInterceptionAsStream(TakeResponseBodyForInterceptionAsStream)

§

ReplayXhr(ReplayXhr)

§

SearchInResponseBody(SearchInResponseBody)

§

SetBlockedUrLs(SetBlockedUrLs)

§

SetBypassServiceWorker(SetBypassServiceWorker)

§

SetCacheDisabled(SetCacheDisabled)

§

SetCookie(SetCookie)

§

SetCookies(SetCookies)

§

SetExtraHttpHeaders(SetExtraHttpHeaders)

§

SetAttachDebugStack(SetAttachDebugStack)

§

SetUserAgentOverride(SetUserAgentOverride)

§

StreamResourceContent(StreamResourceContent)

§

GetSecurityIsolationStatus(GetSecurityIsolationStatus)

§

EnableReportingApi(EnableReportingApi)

§

EnableDeviceBoundSessions(EnableDeviceBoundSessions)

§

FetchSchemefulSite(FetchSchemefulSite)

§

LoadNetworkResource(LoadNetworkResource)

§

SetCookieControls(SetCookieControls)

Implementations§

Source§

impl NetworkCommands

Source

pub fn identifier(&self) -> &'static str

Trait Implementations§

Source§

impl Clone for NetworkCommands

Source§

fn clone(&self) -> NetworkCommands

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NetworkCommands

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for NetworkCommands

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<ClearAcceptedEncodingsOverride> for NetworkCommands

Source§

fn from(v: ClearAcceptedEncodingsOverride) -> Self

Converts to this type from the input type.
Source§

impl From<ClearBrowserCache> for NetworkCommands

Source§

fn from(v: ClearBrowserCache) -> Self

Converts to this type from the input type.
Source§

impl From<ClearBrowserCookies> for NetworkCommands

Source§

fn from(v: ClearBrowserCookies) -> Self

Converts to this type from the input type.
Source§

impl From<ConfigureDurableMessages> for NetworkCommands

Source§

fn from(v: ConfigureDurableMessages) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteCookies> for NetworkCommands

Source§

fn from(v: DeleteCookies) -> Self

Converts to this type from the input type.
Source§

impl From<Disable> for NetworkCommands

Source§

fn from(v: Disable) -> Self

Converts to this type from the input type.
Source§

impl From<EmulateNetworkConditionsByRule> for NetworkCommands

Source§

fn from(v: EmulateNetworkConditionsByRule) -> Self

Converts to this type from the input type.
Source§

impl From<Enable> for NetworkCommands

Source§

fn from(v: Enable) -> Self

Converts to this type from the input type.
Source§

impl From<EnableDeviceBoundSessions> for NetworkCommands

Source§

fn from(v: EnableDeviceBoundSessions) -> Self

Converts to this type from the input type.
Source§

impl From<EnableReportingApi> for NetworkCommands

Source§

fn from(v: EnableReportingApi) -> Self

Converts to this type from the input type.
Source§

impl From<FetchSchemefulSite> for NetworkCommands

Source§

fn from(v: FetchSchemefulSite) -> Self

Converts to this type from the input type.
Source§

impl From<GetCertificate> for NetworkCommands

Source§

fn from(v: GetCertificate) -> Self

Converts to this type from the input type.
Source§

impl From<GetCookies> for NetworkCommands

Source§

fn from(v: GetCookies) -> Self

Converts to this type from the input type.
Source§

impl From<GetRequestPostData> for NetworkCommands

Source§

fn from(v: GetRequestPostData) -> Self

Converts to this type from the input type.
Source§

impl From<GetResponseBody> for NetworkCommands

Source§

fn from(v: GetResponseBody) -> Self

Converts to this type from the input type.
Source§

impl From<GetResponseBodyForInterception> for NetworkCommands

Source§

fn from(v: GetResponseBodyForInterception) -> Self

Converts to this type from the input type.
Source§

impl From<GetSecurityIsolationStatus> for NetworkCommands

Source§

fn from(v: GetSecurityIsolationStatus) -> Self

Converts to this type from the input type.
Source§

impl From<LoadNetworkResource> for NetworkCommands

Source§

fn from(v: LoadNetworkResource) -> Self

Converts to this type from the input type.
Source§

impl From<NetworkCommands> for BrowserProtocolCommands

Source§

fn from(v: NetworkCommands) -> Self

Converts to this type from the input type.
Source§

impl From<NetworkCommands> for Command

Source§

fn from(v: NetworkCommands) -> Self

Converts to this type from the input type.
Source§

impl From<OverrideNetworkState> for NetworkCommands

Source§

fn from(v: OverrideNetworkState) -> Self

Converts to this type from the input type.
Source§

impl From<ReplayXhr> for NetworkCommands

Source§

fn from(v: ReplayXhr) -> Self

Converts to this type from the input type.
Source§

impl From<SearchInResponseBody> for NetworkCommands

Source§

fn from(v: SearchInResponseBody) -> Self

Converts to this type from the input type.
Source§

impl From<SetAcceptedEncodings> for NetworkCommands

Source§

fn from(v: SetAcceptedEncodings) -> Self

Converts to this type from the input type.
Source§

impl From<SetAttachDebugStack> for NetworkCommands

Source§

fn from(v: SetAttachDebugStack) -> Self

Converts to this type from the input type.
Source§

impl From<SetBlockedUrLs> for NetworkCommands

Source§

fn from(v: SetBlockedUrLs) -> Self

Converts to this type from the input type.
Source§

impl From<SetBypassServiceWorker> for NetworkCommands

Source§

fn from(v: SetBypassServiceWorker) -> Self

Converts to this type from the input type.
Source§

impl From<SetCacheDisabled> for NetworkCommands

Source§

fn from(v: SetCacheDisabled) -> Self

Converts to this type from the input type.
Source§

impl From<SetCookie> for NetworkCommands

Source§

fn from(v: SetCookie) -> Self

Converts to this type from the input type.
Source§

impl From<SetCookieControls> for NetworkCommands

Source§

fn from(v: SetCookieControls) -> Self

Converts to this type from the input type.
Source§

impl From<SetCookies> for NetworkCommands

Source§

fn from(v: SetCookies) -> Self

Converts to this type from the input type.
Source§

impl From<SetExtraHttpHeaders> for NetworkCommands

Source§

fn from(v: SetExtraHttpHeaders) -> Self

Converts to this type from the input type.
Source§

impl From<SetUserAgentOverride> for NetworkCommands

Source§

fn from(v: SetUserAgentOverride) -> Self

Converts to this type from the input type.
Source§

impl From<StreamResourceContent> for NetworkCommands

Source§

fn from(v: StreamResourceContent) -> Self

Converts to this type from the input type.
Source§

impl From<TakeResponseBodyForInterceptionAsStream> for NetworkCommands

Source§

fn from(v: TakeResponseBodyForInterceptionAsStream) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for NetworkCommands

Source§

fn eq(&self, other: &NetworkCommands) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for NetworkCommands

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<BrowserProtocolCommands> for NetworkCommands

Source§

type Error = BrowserProtocolCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <NetworkCommands as TryFrom<BrowserProtocolCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<Command> for NetworkCommands

Source§

type Error = Command

The type returned in the event of a conversion error.
Source§

fn try_from( e: Command, ) -> Result<Self, <NetworkCommands as TryFrom<Command>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for ClearAcceptedEncodingsOverride

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <ClearAcceptedEncodingsOverride as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for ClearBrowserCache

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <ClearBrowserCache as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for ClearBrowserCookies

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <ClearBrowserCookies as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for ConfigureDurableMessages

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <ConfigureDurableMessages as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for DeleteCookies

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <DeleteCookies as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for Disable

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <Disable as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for EmulateNetworkConditionsByRule

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <EmulateNetworkConditionsByRule as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for Enable

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <Enable as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for EnableDeviceBoundSessions

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <EnableDeviceBoundSessions as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for EnableReportingApi

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <EnableReportingApi as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for FetchSchemefulSite

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <FetchSchemefulSite as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for GetCertificate

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <GetCertificate as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for GetCookies

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <GetCookies as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for GetRequestPostData

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <GetRequestPostData as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for GetResponseBody

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <GetResponseBody as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for GetResponseBodyForInterception

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <GetResponseBodyForInterception as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for GetSecurityIsolationStatus

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <GetSecurityIsolationStatus as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for LoadNetworkResource

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <LoadNetworkResource as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for OverrideNetworkState

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <OverrideNetworkState as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for ReplayXhr

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <ReplayXhr as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for SearchInResponseBody

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <SearchInResponseBody as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for SetAcceptedEncodings

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <SetAcceptedEncodings as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for SetAttachDebugStack

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <SetAttachDebugStack as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for SetBlockedUrLs

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <SetBlockedUrLs as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for SetBypassServiceWorker

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <SetBypassServiceWorker as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for SetCacheDisabled

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <SetCacheDisabled as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for SetCookie

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <SetCookie as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for SetCookieControls

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <SetCookieControls as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for SetCookies

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <SetCookies as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for SetExtraHttpHeaders

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <SetExtraHttpHeaders as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for SetUserAgentOverride

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <SetUserAgentOverride as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for StreamResourceContent

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <StreamResourceContent as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl TryFrom<NetworkCommands> for TakeResponseBodyForInterceptionAsStream

Source§

type Error = NetworkCommands

The type returned in the event of a conversion error.
Source§

fn try_from( e: NetworkCommands, ) -> Result<Self, <TakeResponseBodyForInterceptionAsStream as TryFrom<NetworkCommands>>::Error>

Performs the conversion.
Source§

impl StructuralPartialEq for NetworkCommands

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,