Enum OwnedLelumError
enum OwnedLelumError {
NodeNotFound {
path: String,
},
MissingValue {
path: String,
},
ReadOnly {
path: String,
},
InvalidValue {
path: String,
expected: Option<String>,
},
}Available on crate feature
client only.Expand description
Owned mirror of LelumError for chain replies.
zlink’s chain API requires DeserializeOwned, but LelumError borrows
from the connection buffer. This type deserializes the same wire format with
owned fields and converts back via From. Keep its variants in sync with
LelumError.
Variants§
Trait Implementations§
§impl Debug for OwnedLelumError
impl Debug for OwnedLelumError
§impl<'de> Deserialize<'de> for OwnedLelumError
impl<'de> Deserialize<'de> for OwnedLelumError
§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 From<OwnedLelumError> for LelumError<'static>
impl From<OwnedLelumError> for LelumError<'static>
§fn from(error: OwnedLelumError) -> Self
fn from(error: OwnedLelumError) -> Self
Converts to this type from the input type.
§impl Serialize for OwnedLelumError
impl Serialize for OwnedLelumError
Auto Trait Implementations§
impl Freeze for OwnedLelumError
impl RefUnwindSafe for OwnedLelumError
impl Send for OwnedLelumError
impl Sync for OwnedLelumError
impl Unpin for OwnedLelumError
impl UnwindSafe for OwnedLelumError
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