pub struct ObservedEffect {
pub status: ObservedStatus,
pub kind: ObservedKind,
pub detail: Option<String>,
}Expand description
The post-dispatch observation: did the expected effect happen?
Fields§
§status: ObservedStatus§kind: ObservedKind§detail: Option<String>Human-readable detail (what was observed / why it timed out).
Implementations§
Source§impl ObservedEffect
impl ObservedEffect
Sourcepub fn not_checked() -> Self
pub fn not_checked() -> Self
No verification was requested for this action.
Sourcepub fn selector_observed(expectation: EffectExpectation) -> Self
pub fn selector_observed(expectation: EffectExpectation) -> Self
A browser EffectExpectation was confirmed.
Sourcepub fn selector_timed_out(
expectation: EffectExpectation,
detail: impl Into<String>,
) -> Self
pub fn selector_timed_out( expectation: EffectExpectation, detail: impl Into<String>, ) -> Self
A browser EffectExpectation timed out; detail names what we saw
instead (the diagnostic wait_for_effect produced).
Trait Implementations§
Source§impl Clone for ObservedEffect
impl Clone for ObservedEffect
Source§fn clone(&self) -> ObservedEffect
fn clone(&self) -> ObservedEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObservedEffect
impl Debug for ObservedEffect
Source§impl<'de> Deserialize<'de> for ObservedEffect
impl<'de> Deserialize<'de> for ObservedEffect
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ObservedEffect
Source§impl PartialEq for ObservedEffect
impl PartialEq for ObservedEffect
Source§fn eq(&self, other: &ObservedEffect) -> bool
fn eq(&self, other: &ObservedEffect) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ObservedEffect
impl Serialize for ObservedEffect
impl StructuralPartialEq for ObservedEffect
Auto Trait Implementations§
impl Freeze for ObservedEffect
impl RefUnwindSafe for ObservedEffect
impl Send for ObservedEffect
impl Sync for ObservedEffect
impl Unpin for ObservedEffect
impl UnsafeUnpin for ObservedEffect
impl UnwindSafe for ObservedEffect
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