pub enum MemoryCommands {
GetDomCounters(GetDomCounters),
GetDomCountersForLeakDetection(GetDomCountersForLeakDetection),
PrepareForLeakDetection(PrepareForLeakDetection),
ForciblyPurgeJavaScriptMemory(ForciblyPurgeJavaScriptMemory),
SetPressureNotificationsSuppressed(SetPressureNotificationsSuppressed),
SimulatePressureNotification(SimulatePressureNotification),
StartSampling(StartSampling),
StopSampling(StopSampling),
GetAllTimeSamplingProfile(GetAllTimeSamplingProfile),
GetBrowserSamplingProfile(GetBrowserSamplingProfile),
GetSamplingProfile(GetSamplingProfile),
}Variants§
GetDomCounters(GetDomCounters)
GetDomCountersForLeakDetection(GetDomCountersForLeakDetection)
PrepareForLeakDetection(PrepareForLeakDetection)
ForciblyPurgeJavaScriptMemory(ForciblyPurgeJavaScriptMemory)
SetPressureNotificationsSuppressed(SetPressureNotificationsSuppressed)
SimulatePressureNotification(SimulatePressureNotification)
StartSampling(StartSampling)
StopSampling(StopSampling)
GetAllTimeSamplingProfile(GetAllTimeSamplingProfile)
GetBrowserSamplingProfile(GetBrowserSamplingProfile)
GetSamplingProfile(GetSamplingProfile)
Implementations§
Source§impl MemoryCommands
impl MemoryCommands
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for MemoryCommands
impl Clone for MemoryCommands
Source§fn clone(&self) -> MemoryCommands
fn clone(&self) -> MemoryCommands
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 Debug for MemoryCommands
impl Debug for MemoryCommands
Source§impl<'de> Deserialize<'de> for MemoryCommands
impl<'de> Deserialize<'de> for MemoryCommands
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
Source§impl From<ForciblyPurgeJavaScriptMemory> for MemoryCommands
impl From<ForciblyPurgeJavaScriptMemory> for MemoryCommands
Source§fn from(v: ForciblyPurgeJavaScriptMemory) -> Self
fn from(v: ForciblyPurgeJavaScriptMemory) -> Self
Converts to this type from the input type.
Source§impl From<GetAllTimeSamplingProfile> for MemoryCommands
impl From<GetAllTimeSamplingProfile> for MemoryCommands
Source§fn from(v: GetAllTimeSamplingProfile) -> Self
fn from(v: GetAllTimeSamplingProfile) -> Self
Converts to this type from the input type.
Source§impl From<GetBrowserSamplingProfile> for MemoryCommands
impl From<GetBrowserSamplingProfile> for MemoryCommands
Source§fn from(v: GetBrowserSamplingProfile) -> Self
fn from(v: GetBrowserSamplingProfile) -> Self
Converts to this type from the input type.
Source§impl From<GetDomCounters> for MemoryCommands
impl From<GetDomCounters> for MemoryCommands
Source§fn from(v: GetDomCounters) -> Self
fn from(v: GetDomCounters) -> Self
Converts to this type from the input type.
Source§impl From<GetDomCountersForLeakDetection> for MemoryCommands
impl From<GetDomCountersForLeakDetection> for MemoryCommands
Source§fn from(v: GetDomCountersForLeakDetection) -> Self
fn from(v: GetDomCountersForLeakDetection) -> Self
Converts to this type from the input type.
Source§impl From<GetSamplingProfile> for MemoryCommands
impl From<GetSamplingProfile> for MemoryCommands
Source§fn from(v: GetSamplingProfile) -> Self
fn from(v: GetSamplingProfile) -> Self
Converts to this type from the input type.
Source§impl From<MemoryCommands> for BrowserProtocolCommands
impl From<MemoryCommands> for BrowserProtocolCommands
Source§fn from(v: MemoryCommands) -> Self
fn from(v: MemoryCommands) -> Self
Converts to this type from the input type.
Source§impl From<MemoryCommands> for Command
impl From<MemoryCommands> for Command
Source§fn from(v: MemoryCommands) -> Self
fn from(v: MemoryCommands) -> Self
Converts to this type from the input type.
Source§impl From<PrepareForLeakDetection> for MemoryCommands
impl From<PrepareForLeakDetection> for MemoryCommands
Source§fn from(v: PrepareForLeakDetection) -> Self
fn from(v: PrepareForLeakDetection) -> Self
Converts to this type from the input type.
Source§impl From<SetPressureNotificationsSuppressed> for MemoryCommands
impl From<SetPressureNotificationsSuppressed> for MemoryCommands
Source§fn from(v: SetPressureNotificationsSuppressed) -> Self
fn from(v: SetPressureNotificationsSuppressed) -> Self
Converts to this type from the input type.
Source§impl From<SimulatePressureNotification> for MemoryCommands
impl From<SimulatePressureNotification> for MemoryCommands
Source§fn from(v: SimulatePressureNotification) -> Self
fn from(v: SimulatePressureNotification) -> Self
Converts to this type from the input type.
Source§impl From<StartSampling> for MemoryCommands
impl From<StartSampling> for MemoryCommands
Source§fn from(v: StartSampling) -> Self
fn from(v: StartSampling) -> Self
Converts to this type from the input type.
Source§impl From<StopSampling> for MemoryCommands
impl From<StopSampling> for MemoryCommands
Source§fn from(v: StopSampling) -> Self
fn from(v: StopSampling) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MemoryCommands
impl PartialEq for MemoryCommands
Source§impl Serialize for MemoryCommands
impl Serialize for MemoryCommands
Source§impl TryFrom<BrowserProtocolCommands> for MemoryCommands
impl TryFrom<BrowserProtocolCommands> for MemoryCommands
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <MemoryCommands as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <MemoryCommands as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for MemoryCommands
impl TryFrom<Command> for MemoryCommands
Source§impl TryFrom<MemoryCommands> for ForciblyPurgeJavaScriptMemory
impl TryFrom<MemoryCommands> for ForciblyPurgeJavaScriptMemory
Source§type Error = MemoryCommands
type Error = MemoryCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: MemoryCommands,
) -> Result<Self, <ForciblyPurgeJavaScriptMemory as TryFrom<MemoryCommands>>::Error>
fn try_from( e: MemoryCommands, ) -> Result<Self, <ForciblyPurgeJavaScriptMemory as TryFrom<MemoryCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<MemoryCommands> for GetAllTimeSamplingProfile
impl TryFrom<MemoryCommands> for GetAllTimeSamplingProfile
Source§type Error = MemoryCommands
type Error = MemoryCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: MemoryCommands,
) -> Result<Self, <GetAllTimeSamplingProfile as TryFrom<MemoryCommands>>::Error>
fn try_from( e: MemoryCommands, ) -> Result<Self, <GetAllTimeSamplingProfile as TryFrom<MemoryCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<MemoryCommands> for GetBrowserSamplingProfile
impl TryFrom<MemoryCommands> for GetBrowserSamplingProfile
Source§type Error = MemoryCommands
type Error = MemoryCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: MemoryCommands,
) -> Result<Self, <GetBrowserSamplingProfile as TryFrom<MemoryCommands>>::Error>
fn try_from( e: MemoryCommands, ) -> Result<Self, <GetBrowserSamplingProfile as TryFrom<MemoryCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<MemoryCommands> for GetDomCounters
impl TryFrom<MemoryCommands> for GetDomCounters
Source§type Error = MemoryCommands
type Error = MemoryCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: MemoryCommands,
) -> Result<Self, <GetDomCounters as TryFrom<MemoryCommands>>::Error>
fn try_from( e: MemoryCommands, ) -> Result<Self, <GetDomCounters as TryFrom<MemoryCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<MemoryCommands> for GetDomCountersForLeakDetection
impl TryFrom<MemoryCommands> for GetDomCountersForLeakDetection
Source§type Error = MemoryCommands
type Error = MemoryCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: MemoryCommands,
) -> Result<Self, <GetDomCountersForLeakDetection as TryFrom<MemoryCommands>>::Error>
fn try_from( e: MemoryCommands, ) -> Result<Self, <GetDomCountersForLeakDetection as TryFrom<MemoryCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<MemoryCommands> for GetSamplingProfile
impl TryFrom<MemoryCommands> for GetSamplingProfile
Source§type Error = MemoryCommands
type Error = MemoryCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: MemoryCommands,
) -> Result<Self, <GetSamplingProfile as TryFrom<MemoryCommands>>::Error>
fn try_from( e: MemoryCommands, ) -> Result<Self, <GetSamplingProfile as TryFrom<MemoryCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<MemoryCommands> for PrepareForLeakDetection
impl TryFrom<MemoryCommands> for PrepareForLeakDetection
Source§type Error = MemoryCommands
type Error = MemoryCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: MemoryCommands,
) -> Result<Self, <PrepareForLeakDetection as TryFrom<MemoryCommands>>::Error>
fn try_from( e: MemoryCommands, ) -> Result<Self, <PrepareForLeakDetection as TryFrom<MemoryCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<MemoryCommands> for SetPressureNotificationsSuppressed
impl TryFrom<MemoryCommands> for SetPressureNotificationsSuppressed
Source§type Error = MemoryCommands
type Error = MemoryCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: MemoryCommands,
) -> Result<Self, <SetPressureNotificationsSuppressed as TryFrom<MemoryCommands>>::Error>
fn try_from( e: MemoryCommands, ) -> Result<Self, <SetPressureNotificationsSuppressed as TryFrom<MemoryCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<MemoryCommands> for SimulatePressureNotification
impl TryFrom<MemoryCommands> for SimulatePressureNotification
Source§type Error = MemoryCommands
type Error = MemoryCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: MemoryCommands,
) -> Result<Self, <SimulatePressureNotification as TryFrom<MemoryCommands>>::Error>
fn try_from( e: MemoryCommands, ) -> Result<Self, <SimulatePressureNotification as TryFrom<MemoryCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<MemoryCommands> for StartSampling
impl TryFrom<MemoryCommands> for StartSampling
Source§type Error = MemoryCommands
type Error = MemoryCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: MemoryCommands,
) -> Result<Self, <StartSampling as TryFrom<MemoryCommands>>::Error>
fn try_from( e: MemoryCommands, ) -> Result<Self, <StartSampling as TryFrom<MemoryCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<MemoryCommands> for StopSampling
impl TryFrom<MemoryCommands> for StopSampling
Source§type Error = MemoryCommands
type Error = MemoryCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: MemoryCommands,
) -> Result<Self, <StopSampling as TryFrom<MemoryCommands>>::Error>
fn try_from( e: MemoryCommands, ) -> Result<Self, <StopSampling as TryFrom<MemoryCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for MemoryCommands
Auto Trait Implementations§
impl Freeze for MemoryCommands
impl RefUnwindSafe for MemoryCommands
impl Send for MemoryCommands
impl Sync for MemoryCommands
impl Unpin for MemoryCommands
impl UnsafeUnpin for MemoryCommands
impl UnwindSafe for MemoryCommands
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