pub struct RemoveDebugLogsMutation {
pub target: RemovalTarget,
}Expand description
Remove debug logs inserted by ryo.
§Example
ⓘ
use ryo_mutations::debugger::{RemoveDebugLogsMutation, RemovalTarget};
// Remove all debug logs
let mutation = RemoveDebugLogsMutation::all();
// Remove logs from a specific session
let mutation = RemoveDebugLogsMutation::by_session("abc123");
// Remove logs older than an hour ago
let mutation = RemoveDebugLogsMutation::older_than(timestamp);Fields§
§target: RemovalTargetWhat to remove.
Implementations§
Source§impl RemoveDebugLogsMutation
impl RemoveDebugLogsMutation
Sourcepub fn by_session(session_id: impl Into<String>) -> Self
pub fn by_session(session_id: impl Into<String>) -> Self
Remove logs from a specific session.
Sourcepub fn older_than(timestamp: u64) -> Self
pub fn older_than(timestamp: u64) -> Self
Remove logs older than a timestamp.
Sourcepub fn by_description(pattern: impl Into<String>) -> Self
pub fn by_description(pattern: impl Into<String>) -> Self
Remove logs matching a description pattern.
Sourcepub fn transform_fn(&self, func: &PureFn) -> (PureFn, usize)
pub fn transform_fn(&self, func: &PureFn) -> (PureFn, usize)
Transform a function.
Trait Implementations§
Source§impl Clone for RemoveDebugLogsMutation
impl Clone for RemoveDebugLogsMutation
Source§fn clone(&self) -> RemoveDebugLogsMutation
fn clone(&self) -> RemoveDebugLogsMutation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RemoveDebugLogsMutation
impl Debug for RemoveDebugLogsMutation
Source§impl Mutation for RemoveDebugLogsMutation
impl Mutation for RemoveDebugLogsMutation
Source§fn mutation_type(&self) -> &'static str
fn mutation_type(&self) -> &'static str
Get the mutation type name
Source§fn validate(&self, _file: &PureFile) -> ValidationResult
fn validate(&self, _file: &PureFile) -> ValidationResult
Validate the mutation before applying Read more
Source§fn can_proceed(&self, file: &PureFile, strategy: ValidationStrategy) -> bool
fn can_proceed(&self, file: &PureFile, strategy: ValidationStrategy) -> bool
Check if this mutation can proceed with the given strategy
Auto Trait Implementations§
impl Freeze for RemoveDebugLogsMutation
impl RefUnwindSafe for RemoveDebugLogsMutation
impl Send for RemoveDebugLogsMutation
impl Sync for RemoveDebugLogsMutation
impl Unpin for RemoveDebugLogsMutation
impl UnsafeUnpin for RemoveDebugLogsMutation
impl UnwindSafe for RemoveDebugLogsMutation
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