pub struct Response {
pub varbinds: Vec<VarBind>,
pub error_status: ErrorStatus,
pub error_index: i32,
}Expand description
Response to return from a handler.
This is typically built internally by the agent based on handler results.
Fields§
§varbinds: Vec<VarBind>Variable bindings in the response
error_status: ErrorStatusError status (0 = no error)
error_index: i32Error index (1-based index of problematic varbind, 0 if no error)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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