pub struct DesktopProtocolRequest<'a> {
pub method: DesktopHttpMethod,
pub path: &'a str,
pub body: &'a [u8],
pub wants_json: bool,
}Expand description
Runtime-neutral representation of a custom-protocol request.
Fields§
§method: DesktopHttpMethodRequest method.
path: &'a strURL path, including a leading slash.
body: &'a [u8]Request body bytes.
wants_json: boolWhether the request asks for a router JSON/NDJSON response.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DesktopProtocolRequest<'a>
impl<'a> RefUnwindSafe for DesktopProtocolRequest<'a>
impl<'a> Send for DesktopProtocolRequest<'a>
impl<'a> Sync for DesktopProtocolRequest<'a>
impl<'a> Unpin for DesktopProtocolRequest<'a>
impl<'a> UnsafeUnpin for DesktopProtocolRequest<'a>
impl<'a> UnwindSafe for DesktopProtocolRequest<'a>
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