pub struct ProtocolError {
pub code: String,
pub message: String,
pub diagnostic: Option<String>,
}Expand description
Protocol-level error payload.
Fields§
§code: StringError code string.
message: StringMessage.
diagnostic: Option<String>Optional diagnostic.
Implementations§
Source§impl ProtocolError
impl ProtocolError
Sourcepub fn from_parallax(err: &ParallaxError) -> Self
pub fn from_parallax(err: &ParallaxError) -> Self
From a ParallaxError.
Sourcepub fn into_parallax(self, runtime: Option<RuntimeKind>) -> ParallaxError
pub fn into_parallax(self, runtime: Option<RuntimeKind>) -> ParallaxError
Convert to ParallaxError.
Trait Implementations§
Source§impl Clone for ProtocolError
impl Clone for ProtocolError
Source§impl Debug for ProtocolError
impl Debug for ProtocolError
Source§impl<'de> Deserialize<'de> for ProtocolError
impl<'de> Deserialize<'de> for ProtocolError
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
Auto Trait Implementations§
impl Freeze for ProtocolError
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnsafeUnpin for ProtocolError
impl UnwindSafe for ProtocolError
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