pub trait ResponseInitExt {
// Required methods
fn websocket(&mut self, val: &WebSocket) -> Result<&mut Self, JsValue>;
fn encode_body(&mut self, val: &str) -> Result<&mut Self, JsValue>;
fn cf(&mut self, val: &JsValue) -> Result<&mut Self, JsValue>;
}Required Methods§
Sourcefn websocket(&mut self, val: &WebSocket) -> Result<&mut Self, JsValue>
fn websocket(&mut self, val: &WebSocket) -> Result<&mut Self, JsValue>
Change the webSocket field of this object.
Sourcefn encode_body(&mut self, val: &str) -> Result<&mut Self, JsValue>
fn encode_body(&mut self, val: &str) -> Result<&mut Self, JsValue>
Change the encodeBody field of this object.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.