pub enum LeptosBrowserTestError {
ResolveAppDir {
app_name: String,
app_dir: PathBuf,
},
SpawnCargoLeptos {
app_name: String,
mode: CargoLeptosMode,
},
FindFreeSitePort {
app_name: String,
},
FindFreeReloadPort {
app_name: String,
},
StartupStdoutClosed(StartupFailureContext),
StartupTimedOut {
ctx: StartupFailureContext,
timeout: Duration,
reason: String,
},
StreamRead(StartupFailureContext),
InvalidSiteAddr {
app_name: String,
site_addr: String,
},
}Expand description
Error contexts reported by Leptos test app startup operations.
Variants§
ResolveAppDir
The configured test app directory could not be resolved.
SpawnCargoLeptos
The cargo leptos process could not be spawned.
Fields
mode: CargoLeptosModeThe selected cargo leptos mode.
FindFreeSitePort
A free site port could not be selected.
FindFreeReloadPort
A free reload port could not be selected.
StartupStdoutClosed(StartupFailureContext)
The frontend stdout stream closed before startup completed.
StartupTimedOut
The frontend did not produce the expected startup line before the timeout.
Fields
ctx: StartupFailureContextDiagnostic context (app name, expected line, captured tails).
reason: StringThe caller-supplied reason that justified this particular timeout, recorded by
with_startup_timeout.
StreamRead(StartupFailureContext)
Reading the frontend stdout stream failed before the startup line was observed.
InvalidSiteAddr
The configured site address could not be parsed as a host:port socket address.
Trait Implementations§
Source§impl Debug for LeptosBrowserTestError
impl Debug for LeptosBrowserTestError
Source§impl Display for LeptosBrowserTestError
impl Display for LeptosBrowserTestError
Source§impl Error for LeptosBrowserTestError
impl Error for LeptosBrowserTestError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for LeptosBrowserTestError
impl PartialEq for LeptosBrowserTestError
Source§fn eq(&self, other: &LeptosBrowserTestError) -> bool
fn eq(&self, other: &LeptosBrowserTestError) -> bool
self and other values to be equal, and is used by ==.impl Eq for LeptosBrowserTestError
impl StructuralPartialEq for LeptosBrowserTestError
Auto Trait Implementations§
impl Freeze for LeptosBrowserTestError
impl RefUnwindSafe for LeptosBrowserTestError
impl Send for LeptosBrowserTestError
impl Sync for LeptosBrowserTestError
impl Unpin for LeptosBrowserTestError
impl UnsafeUnpin for LeptosBrowserTestError
impl UnwindSafe for LeptosBrowserTestError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.