pub struct TrapResponse {
pub tag: u16,
pub category: Option<TrapCategory>,
pub message: String,
}Expand description
Represents an error or warning while executing a command, including a tag and message.
Fields§
§tag: u16The tag associated with the command.
category: Option<TrapCategory>The category of the trap.
message: StringThe message associated with the trap.
Trait Implementations§
Source§impl Clone for TrapResponse
impl Clone for TrapResponse
Source§fn clone(&self) -> TrapResponse
fn clone(&self) -> TrapResponse
Returns a copy 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 TrapResponse
impl Debug for TrapResponse
Auto Trait Implementations§
impl Freeze for TrapResponse
impl RefUnwindSafe for TrapResponse
impl Send for TrapResponse
impl Sync for TrapResponse
impl Unpin for TrapResponse
impl UnwindSafe for TrapResponse
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