pub enum Response {
Skipped,
OkBody(OkResponseParser),
SerialBody(SerialResponseParser),
InfoBody(InfoResponseParser),
StreamBody(StreamResponse),
}Expand description
All response types supported by a tosca device.
Each response includes a dedicated body parser to extract the embedded data.
Variants§
Skipped
A skipped response indicates a request that is not sent due to privacy policy rules.
OkBody(OkResponseParser)
An OkResponse body.
SerialBody(SerialResponseParser)
A SerialResponse body.
InfoBody(InfoResponseParser)
An InfoResponse body.
StreamBody(StreamResponse)
A byte stream response body.
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