pub enum PreimageOracleError {
IOError(ChannelError),
InvalidPreimageKey,
KeyNotFound,
BufferLengthMismatch(usize, usize),
Other(String),
}Expand description
A PreimageOracleError is an enum that differentiates pipe-related errors from other errors in the PreimageOracleServer and HintReaderServer implementations.
Variants§
IOError(ChannelError)
The pipe has been broken.
InvalidPreimageKey
The preimage key is invalid.
KeyNotFound
Key not found.
BufferLengthMismatch(usize, usize)
Buffer length mismatch.
Other(String)
Other errors.
Trait Implementations§
Source§impl Debug for PreimageOracleError
impl Debug for PreimageOracleError
Source§impl Display for PreimageOracleError
impl Display for PreimageOracleError
Source§impl Error for PreimageOracleError
impl Error for PreimageOracleError
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<ChannelError> for PreimageOracleError
impl From<ChannelError> for PreimageOracleError
Source§fn from(source: ChannelError) -> Self
fn from(source: ChannelError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PreimageOracleError
impl RefUnwindSafe for PreimageOracleError
impl Send for PreimageOracleError
impl Sync for PreimageOracleError
impl Unpin for PreimageOracleError
impl UnwindSafe for PreimageOracleError
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