pub struct CommandEventBuilder { /* private fields */ }Expand description
Builder for command execution events
Implementations§
Source§impl CommandEventBuilder
impl CommandEventBuilder
Sourcepub fn subcommand(self, subcommand: impl Into<String>) -> Self
pub fn subcommand(self, subcommand: impl Into<String>) -> Self
Set subcommand
Sourcepub fn duration_ms(self, duration_ms: u64) -> Self
pub fn duration_ms(self, duration_ms: u64) -> Self
Set duration in milliseconds
Trait Implementations§
Source§impl Debug for CommandEventBuilder
impl Debug for CommandEventBuilder
Source§impl Default for CommandEventBuilder
impl Default for CommandEventBuilder
Source§fn default() -> CommandEventBuilder
fn default() -> CommandEventBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommandEventBuilder
impl RefUnwindSafe for CommandEventBuilder
impl Send for CommandEventBuilder
impl Sync for CommandEventBuilder
impl Unpin for CommandEventBuilder
impl UnwindSafe for CommandEventBuilder
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