pub struct CommandRequest {
pub command: Command,
pub address: Address,
}Expand description
CommandRequest message:
+-----+-------+------+----------+----------+
| CMD | RSV | ATYP | DST.ADDR | DST.PORT |
+-----+-------+------+----------+----------+
| 1 | X'00' | 1 | Variable | 2 |
+-----+-------+------+----------+----------+
Fields§
§command: Commandcommand (CMD).
address: AddressAddress (ATYP, DST.ADDR, DST.PORT).
Implementations§
Source§impl CommandRequest
impl CommandRequest
Sourcepub fn connect(address: Address) -> CommandRequest
pub fn connect(address: Address) -> CommandRequest
Create a CommandRequest with Connect to address.
Sourcepub fn udp_associate(address: Address) -> CommandRequest
pub fn udp_associate(address: Address) -> CommandRequest
Create a CommandRequest with UdpAssociate to address.
Trait Implementations§
Source§impl Debug for CommandRequest
impl Debug for CommandRequest
Auto Trait Implementations§
impl Freeze for CommandRequest
impl RefUnwindSafe for CommandRequest
impl Send for CommandRequest
impl Sync for CommandRequest
impl Unpin for CommandRequest
impl UnwindSafe for CommandRequest
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