pub enum PutError {
OpenStream(ConnectionError),
Call(CallError),
Remote {
code: u8,
name: String,
detail: Option<String>,
},
UnexpectedReply(Value),
HashMismatch,
}Variants§
OpenStream(ConnectionError)
Opening the dedicated stream itself failed (e.g. the connection is already dead) — never got as far as making a call.
Call(CallError)
Remote
The station rejected the call with a BOLT#4 ERROR.
UnexpectedReply(Value)
A RESULT arrived but its payload wasn’t one of the shapes this procedure is documented to return.
HashMismatch
The station recomputed the block’s hash and it didn’t match the MCID the caller sent — the block was not stored.
Trait Implementations§
Source§impl Error for PutError
impl Error for PutError
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()
Auto Trait Implementations§
impl !Freeze for PutError
impl RefUnwindSafe for PutError
impl Send for PutError
impl Sync for PutError
impl Unpin for PutError
impl UnsafeUnpin for PutError
impl UnwindSafe for PutError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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