pub enum PvError {
Unbound,
NotFound(String),
TypeMismatch {
expected: &'static str,
actual: String,
},
PutRejected(String),
}Expand description
Errors from typed PV handle operations.
Variants§
Unbound
The handle has not been bound to a server/store yet.
NotFound(String)
No record with this name exists in the store.
TypeMismatch
The record’s value type does not match the handle’s T.
PutRejected(String)
A PUT was rejected by an on_put callback.
Trait Implementations§
Source§impl Error for PvError
impl Error for PvError
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()
impl StructuralPartialEq for PvError
Auto Trait Implementations§
impl Freeze for PvError
impl RefUnwindSafe for PvError
impl Send for PvError
impl Sync for PvError
impl Unpin for PvError
impl UnsafeUnpin for PvError
impl UnwindSafe for PvError
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