pub async fn validate(&self) -> Result<ValidSession<'_>, JsValue> {
        if let Err(err) = self.validate_view_config().await {
            web_sys::console::error_3(
                &"Invalid config, resetting to default".into(),
                &JsValue::from_serde(&self.borrow().config).unwrap(),
                &err,
            );

            self.reset(true);
            self.validate_view_config().await?;
        }

        Ok(ValidSession(self))
    }
/// In order to create a new view in this session, the session must first be
/// validated to create a `ValidSession<'_>` guard.
In order to create a new view in this session, the session must first be
validated to create a `ValidSession<'_>` guard.
In order to create a new view in this session the session must first be validated to create a ` ValidSession< ' _ > ` guard .
pub async fn validate(&self) -> Result<ValidSession<'_>, JsValue> {
        if let Err(err) = self.validate_view_config().await {
            web_sys::console::error_3(
                &"Invalid config, resetting to default".into(),
                &JsValue::from_serde(&self.borrow().config).unwrap(),
                &err,
            );
            self.reset(true);
            self.validate_view_config().await?;
        }
        Ok(ValidSession(self))
    }
pub async fn validate ( & self ) -> Result < ValidSession < ' _ > , JsValue > { if let Err ( err ) = self . validate_view_config ( ) . await { web_sys :: console :: error_3 ( & " " . into ( ) , & JsValue :: from_serde ( & self . borrow ( ) . config ) . unwrap ( ) , & err , ) ; self . reset ( true ) ; self . validate_view_config ( ) . await ? ; } Ok ( ValidSession ( self ) ) }
In order to create a new view in this session, the session must first be
validated to create a `ValidSession<'_>` guard.
In order to create a new view in this session the session must first be validated to create a ` ValidSession< ' _ > ` guard .
&self
&self