pub struct ControlRequest {
pub method: String,
pub path: String,
pub body: Value,
/* private fields */
}Expand description
A command forwarded from the HTTP server to the renderer thread.
Fields§
§method: String§path: String§body: ValueImplementations§
Source§impl ControlRequest
impl ControlRequest
Sourcepub fn respond(self, response: ControlResponse) -> Result<(), ControlResponse>
pub fn respond(self, response: ControlResponse) -> Result<(), ControlResponse>
Complete this request. Failure means the client already disconnected.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ControlRequest
impl RefUnwindSafe for ControlRequest
impl Send for ControlRequest
impl Sync for ControlRequest
impl Unpin for ControlRequest
impl UnsafeUnpin for ControlRequest
impl UnwindSafe for ControlRequest
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