pub enum Refused {
Unknown {
path: String,
},
Invalid {
reason: String,
current: Value,
},
Stale {
current: Value,
seq: u64,
},
Held {
current: Value,
by: Origin,
},
NotWriter {
path: String,
by: OwnerId,
owner: OwnerId,
current: Value,
},
}Expand description
Why a write was refused; each gives the current value.
Variants§
Unknown
Invalid
Stale
It changed since the writer read it.
Held
Someone else’s gesture holds it.
NotWriter
The scope issuing it is not one of the path’s writers.
Trait Implementations§
Source§impl Error for Refused
impl Error for Refused
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 From<Refused> for String
A refusal as its message, so ? turns it into the String error a
command handler returns.
impl From<Refused> for String
A refusal as its message, so ? turns it into the String error a
command handler returns.
impl StructuralPartialEq for Refused
Auto Trait Implementations§
impl Freeze for Refused
impl RefUnwindSafe for Refused
impl Send for Refused
impl Sync for Refused
impl Unpin for Refused
impl UnsafeUnpin for Refused
impl UnwindSafe for Refused
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