pub struct CommandResponse {
pub reply: CommandReply,
pub address: Address,
}
Fields§
§reply: CommandReply
§address: Address
Implementations§
Source§impl CommandResponse
impl CommandResponse
pub fn success(address: Address) -> CommandResponse
pub fn reply_error(reply: CommandReply) -> CommandResponse
pub fn error(e: impl TryInto<Error>) -> CommandResponse
pub async fn read(reader: impl AsyncRead + Unpin) -> Result<CommandResponse>
pub async fn write(&self, writer: impl AsyncWrite + Unpin) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommandResponse
impl RefUnwindSafe for CommandResponse
impl Send for CommandResponse
impl Sync for CommandResponse
impl Unpin for CommandResponse
impl UnwindSafe for CommandResponse
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