pub struct SetVariable { /* private fields */ }Expand description
The Set Variable command.
Use with
use blazing_agi::command::SetVariable;
let cmd = SetVariable::new("TheVariable".to_owned(), "TheValue".to_owned());
// Will send:
assert_eq!(cmd.to_string(), "SET VARIABLE \"TheVariable\" \"TheValue\"\n")The associated InnerAGIResponse from send_command is
SetVariableResponse.
Implementations§
Source§impl SetVariable
impl SetVariable
Sourcepub fn new(var_name: String, value: String) -> Self
pub fn new(var_name: String, value: String) -> Self
Create SetVariable. When sent, this will set var_name to value.
Trait Implementations§
Source§impl AGICommand for SetVariable
impl AGICommand for SetVariable
Source§impl Debug for SetVariable
impl Debug for SetVariable
Auto Trait Implementations§
impl Freeze for SetVariable
impl RefUnwindSafe for SetVariable
impl Send for SetVariable
impl Sync for SetVariable
impl Unpin for SetVariable
impl UnwindSafe for SetVariable
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