pub struct OutCommand(pub OutPacket);
Tuple Fields§
§0: OutPacket
Implementations§
Source§impl OutCommand
impl OutCommand
pub fn new(dir: Direction, flags: Flags, p_type: PacketType, name: &str) -> Self
Sourcepub fn write_bin_arg(&mut self, name: &str, value: &[u8])
pub fn write_bin_arg(&mut self, name: &str, value: &[u8])
For binary arguments. The value will still be escaped.
Sourcepub fn write_arg(&mut self, name: &str, value: &dyn Display)
pub fn write_arg(&mut self, name: &str, value: &dyn Display)
The value will be formatted and escaped.
Sourcepub fn start_new_part(&mut self)
pub fn start_new_part(&mut self)
Adds a pipe symbol |
to the command.
pub fn into_packet(self) -> OutPacket
Auto Trait Implementations§
impl Freeze for OutCommand
impl RefUnwindSafe for OutCommand
impl Send for OutCommand
impl Sync for OutCommand
impl Unpin for OutCommand
impl UnwindSafe for OutCommand
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