pub struct CmdResponse {
pub header: CommandHeader,
pub status: StatusCode,
pub tag: CmdResponseTag,
}Expand description
McuBoot command response structure
Represents the response received from a McuBoot device after sending a command. All McuBoot commands return a response indicating success/failure and may include additional data depending on the command type.
Fields§
§header: CommandHeaderResponse header (same format as command header)
status: StatusCodeStatus code indicating command execution result
tag: CmdResponseTagResponse-specific data (varies by command type)
Trait Implementations§
Source§impl Clone for CmdResponse
impl Clone for CmdResponse
Source§fn clone(&self) -> CmdResponse
fn clone(&self) -> CmdResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CmdResponse
impl Debug for CmdResponse
Auto Trait Implementations§
impl Freeze for CmdResponse
impl RefUnwindSafe for CmdResponse
impl Send for CmdResponse
impl Sync for CmdResponse
impl Unpin for CmdResponse
impl UnwindSafe for CmdResponse
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