pub struct CommandRequest {
pub command: Command,
pub address: Address,
}
Fields§
§command: Command
§address: Address
Implementations§
Source§impl CommandRequest
impl CommandRequest
pub fn connect(address: Address) -> CommandRequest
pub fn udp_associate(address: Address) -> CommandRequest
pub async fn read(reader: impl AsyncRead + Unpin) -> Result<CommandRequest>
pub async fn write(&self, writer: impl AsyncWrite + Unpin) -> Result<()>
Trait Implementations§
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