pub struct SetSamplingInterval {
pub method: SetSamplingIntervalMethod,
pub params: SetSamplingIntervalParams,
}Expand description
Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. setSamplingInterval
Fields§
§method: SetSamplingIntervalMethod§params: SetSamplingIntervalParamsImplementations§
Source§impl SetSamplingInterval
impl SetSamplingInterval
pub fn builder() -> SetSamplingIntervalBuilder
Source§impl SetSamplingInterval
impl SetSamplingInterval
pub const IDENTIFIER: &'static str = "Profiler.setSamplingInterval"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SetSamplingInterval
impl Clone for SetSamplingInterval
Source§fn clone(&self) -> SetSamplingInterval
fn clone(&self) -> SetSamplingInterval
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 CommandResult for SetSamplingInterval
impl CommandResult for SetSamplingInterval
type Result = SetSamplingIntervalResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for SetSamplingInterval
impl Debug for SetSamplingInterval
Source§impl<'de> Deserialize<'de> for SetSamplingInterval
impl<'de> Deserialize<'de> for SetSamplingInterval
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<SetSamplingInterval> for Command
impl From<SetSamplingInterval> for Command
Source§fn from(v: SetSamplingInterval) -> Self
fn from(v: SetSamplingInterval) -> Self
Converts to this type from the input type.
Source§impl From<SetSamplingInterval> for JsProtocolCommands
impl From<SetSamplingInterval> for JsProtocolCommands
Source§fn from(v: SetSamplingInterval) -> Self
fn from(v: SetSamplingInterval) -> Self
Converts to this type from the input type.
Source§impl From<SetSamplingInterval> for ProfilerCommands
impl From<SetSamplingInterval> for ProfilerCommands
Source§fn from(v: SetSamplingInterval) -> Self
fn from(v: SetSamplingInterval) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetSamplingInterval
impl PartialEq for SetSamplingInterval
Source§impl Serialize for SetSamplingInterval
impl Serialize for SetSamplingInterval
Source§impl TryFrom<Command> for SetSamplingInterval
impl TryFrom<Command> for SetSamplingInterval
Source§impl TryFrom<JsProtocolCommands> for SetSamplingInterval
impl TryFrom<JsProtocolCommands> for SetSamplingInterval
Source§type Error = JsProtocolCommands
type Error = JsProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: JsProtocolCommands,
) -> Result<Self, <SetSamplingInterval as TryFrom<JsProtocolCommands>>::Error>
fn try_from( e: JsProtocolCommands, ) -> Result<Self, <SetSamplingInterval as TryFrom<JsProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<ProfilerCommands> for SetSamplingInterval
impl TryFrom<ProfilerCommands> for SetSamplingInterval
Source§type Error = ProfilerCommands
type Error = ProfilerCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: ProfilerCommands,
) -> Result<Self, <SetSamplingInterval as TryFrom<ProfilerCommands>>::Error>
fn try_from( e: ProfilerCommands, ) -> Result<Self, <SetSamplingInterval as TryFrom<ProfilerCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for SetSamplingInterval
Auto Trait Implementations§
impl Freeze for SetSamplingInterval
impl RefUnwindSafe for SetSamplingInterval
impl Send for SetSamplingInterval
impl Sync for SetSamplingInterval
impl Unpin for SetSamplingInterval
impl UnsafeUnpin for SetSamplingInterval
impl UnwindSafe for SetSamplingInterval
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