pub struct PercyPreviewWebClient {
pub rerender: Arc<Mutex<Box<dyn FnMut()>>>,
}Expand description
A frontend web application that lets you preview your own application’s view components.
Fields§
§rerender: Arc<Mutex<Box<dyn FnMut()>>>Rerender the application.
Implementations§
Source§impl PercyPreviewWebClient
impl PercyPreviewWebClient
Sourcepub fn new_append_to_mount(
config: WebClientConfig,
dom_selector_of_mount: &str,
) -> Self
pub fn new_append_to_mount( config: WebClientConfig, dom_selector_of_mount: &str, ) -> Self
Create a new preview application and append the application to a DOM node.
Trait Implementations§
Source§impl From<PercyPreviewWebClient> for JsValue
impl From<PercyPreviewWebClient> for JsValue
Source§fn from(value: PercyPreviewWebClient) -> Self
fn from(value: PercyPreviewWebClient) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for PercyPreviewWebClient
impl FromWasmAbi for PercyPreviewWebClient
Source§impl IntoWasmAbi for PercyPreviewWebClient
impl IntoWasmAbi for PercyPreviewWebClient
Source§impl RefFromWasmAbi for PercyPreviewWebClient
impl RefFromWasmAbi for PercyPreviewWebClient
Source§type Anchor = RcRef<PercyPreviewWebClient>
type Anchor = RcRef<PercyPreviewWebClient>
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 PercyPreviewWebClient
impl VectorFromWasmAbi for PercyPreviewWebClient
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[PercyPreviewWebClient]>
Source§impl VectorIntoWasmAbi for PercyPreviewWebClient
impl VectorIntoWasmAbi for PercyPreviewWebClient
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[PercyPreviewWebClient]>) -> Self::Abi
Source§impl WasmDescribeVector for PercyPreviewWebClient
impl WasmDescribeVector for PercyPreviewWebClient
impl SupportsConstructor for PercyPreviewWebClient
impl SupportsInstanceProperty for PercyPreviewWebClient
impl SupportsStaticProperty for PercyPreviewWebClient
Auto Trait Implementations§
impl Freeze for PercyPreviewWebClient
impl RefUnwindSafe for PercyPreviewWebClient
impl !Send for PercyPreviewWebClient
impl !Sync for PercyPreviewWebClient
impl Unpin for PercyPreviewWebClient
impl UnwindSafe for PercyPreviewWebClient
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::AbiSource§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.