pub struct StreamProtocolResponse { /* private fields */ }
Implementations§
Source§impl StreamProtocolResponse
impl StreamProtocolResponse
pub fn new( data: Option<ReadableStream>, headers: Option<Object>, status_code: Option<u32>, ) -> StreamProtocolResponse
pub fn data(&self) -> Option<ReadableStream>
pub fn set_data(&mut self, value: Option<ReadableStream>)
pub fn headers(&self) -> Option<Object>
pub fn set_headers(&mut self, value: Option<Object>)
pub fn status_code(&self) -> Option<u32>
pub fn set_status_code(&mut self, value: Option<u32>)
Trait Implementations§
Source§impl From<StreamProtocolResponse> for JsValue
impl From<StreamProtocolResponse> for JsValue
Source§fn from(value: StreamProtocolResponse) -> Self
fn from(value: StreamProtocolResponse) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for StreamProtocolResponse
impl FromWasmAbi for StreamProtocolResponse
Source§impl IntoWasmAbi for StreamProtocolResponse
impl IntoWasmAbi for StreamProtocolResponse
Source§impl RefFromWasmAbi for StreamProtocolResponse
impl RefFromWasmAbi for StreamProtocolResponse
Source§type Anchor = RcRef<StreamProtocolResponse>
type Anchor = RcRef<StreamProtocolResponse>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl VectorFromWasmAbi for StreamProtocolResponse
impl VectorFromWasmAbi for StreamProtocolResponse
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[StreamProtocolResponse]>
Source§impl VectorIntoJsValue for StreamProtocolResponse
impl VectorIntoJsValue for StreamProtocolResponse
fn vector_into_jsvalue(vector: Box<[StreamProtocolResponse]>) -> JsValue
Source§impl VectorIntoWasmAbi for StreamProtocolResponse
impl VectorIntoWasmAbi for StreamProtocolResponse
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[StreamProtocolResponse]>) -> Self::Abi
Source§impl WasmDescribeVector for StreamProtocolResponse
impl WasmDescribeVector for StreamProtocolResponse
impl SupportsConstructor for StreamProtocolResponse
impl SupportsInstanceProperty for StreamProtocolResponse
impl SupportsStaticProperty for StreamProtocolResponse
Auto Trait Implementations§
impl Freeze for StreamProtocolResponse
impl RefUnwindSafe for StreamProtocolResponse
impl !Send for StreamProtocolResponse
impl !Sync for StreamProtocolResponse
impl Unpin for StreamProtocolResponse
impl UnwindSafe for StreamProtocolResponse
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
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.