Struct tsproto_packets::packets::OutCommand [−][src]
#[must_use]pub struct OutCommand(pub OutPacket);
Implementations
impl OutCommand
[src]
impl OutCommand
[src]pub fn new(dir: Direction, flags: Flags, p_type: PacketType, name: &str) -> Self
[src]
pub fn write_bin_arg(&mut self, name: &str, value: &[u8])
[src]
pub fn write_bin_arg(&mut self, name: &str, value: &[u8])
[src]For binary arguments. The value will still be escaped.
pub fn write_arg(&mut self, name: &str, value: &dyn Display)
[src]
pub fn write_arg(&mut self, name: &str, value: &dyn Display)
[src]The value will be formatted and escaped.
pub fn start_new_part(&mut self)
[src]
pub fn start_new_part(&mut self)
[src]Adds a pipe symbol |
to the command.