pub enum ShellyError {
InvalidMessage(String),
Render(String),
Event(String),
}Expand description
Errors returned by the Shelly core runtime.
Variants§
InvalidMessage(String)
A received client message did not match the expected protocol shape.
Render(String)
A LiveView returned a rendering error.
Event(String)
A LiveView failed while handling an event.
Trait Implementations§
Source§impl Debug for ShellyError
impl Debug for ShellyError
Source§impl Display for ShellyError
impl Display for ShellyError
Source§impl Error for ShellyError
impl Error for ShellyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ShellyError
impl PartialEq for ShellyError
Source§fn eq(&self, other: &ShellyError) -> bool
fn eq(&self, other: &ShellyError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ShellyError
impl StructuralPartialEq for ShellyError
Auto Trait Implementations§
impl Freeze for ShellyError
impl RefUnwindSafe for ShellyError
impl Send for ShellyError
impl Sync for ShellyError
impl Unpin for ShellyError
impl UnsafeUnpin for ShellyError
impl UnwindSafe for ShellyError
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