pub struct RequestPayload {
pub req_handle: u64,
pub req_body_handle: u64,
pub res_body_handle: u64,
pub req_trailers_handle: u64,
pub res_trailers_handle: u64,
pub method: String,
pub url: String,
pub headers: Vec<(String, String)>,
pub remote_node_id: String,
pub is_bidi: bool,
}Expand description
Options passed to the JS serve callback per incoming request.
Fields§
§req_handle: u64§req_body_handle: u64§res_body_handle: u64§req_trailers_handle: u64§res_trailers_handle: u64§method: String§url: String§headers: Vec<(String, String)>§remote_node_id: String§is_bidi: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for RequestPayload
impl RefUnwindSafe for RequestPayload
impl Send for RequestPayload
impl Sync for RequestPayload
impl Unpin for RequestPayload
impl UnsafeUnpin for RequestPayload
impl UnwindSafe for RequestPayload
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