pub struct ApiContext<'a> {
pub method: &'a DesktopHttpMethod,
pub path: &'a str,
pub body: &'a [u8],
/* private fields */
}Expand description
Context passed to Rust custom-protocol API handlers.
Fields§
§method: &'a DesktopHttpMethodRequest method.
path: &'a strRequest path without query string.
body: &'a [u8]Request body bytes.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ApiContext<'a>
impl<'a> RefUnwindSafe for ApiContext<'a>
impl<'a> Send for ApiContext<'a>
impl<'a> Sync for ApiContext<'a>
impl<'a> Unpin for ApiContext<'a>
impl<'a> UnsafeUnpin for ApiContext<'a>
impl<'a> UnwindSafe for ApiContext<'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