pub struct SetRecordingCommand { /* private fields */ }Available on crate features
experimental and BackgroundService only.Expand description
Set the recording state for the service.
Implementations§
Source§impl SetRecordingCommand
impl SetRecordingCommand
pub fn new(should_record: bool, service: ServiceName) -> Self
pub fn should_record(&self) -> bool
pub fn service(&self) -> &ServiceName
Trait Implementations§
Source§impl Clone for SetRecordingCommand
impl Clone for SetRecordingCommand
Source§fn clone(&self) -> SetRecordingCommand
fn clone(&self) -> SetRecordingCommand
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 Command for SetRecordingCommand
impl Command for SetRecordingCommand
Source§impl Debug for SetRecordingCommand
impl Debug for SetRecordingCommand
Source§impl<'de> Deserialize<'de> for SetRecordingCommand
impl<'de> Deserialize<'de> for SetRecordingCommand
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
Auto Trait Implementations§
impl Freeze for SetRecordingCommand
impl RefUnwindSafe for SetRecordingCommand
impl Send for SetRecordingCommand
impl Sync for SetRecordingCommand
impl Unpin for SetRecordingCommand
impl UnwindSafe for SetRecordingCommand
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