Enum tor_chanmgr::Error
source ·
[−]#[non_exhaustive]
pub enum Error {
UnusableTarget(String),
PendingFailed,
ChanTimeout,
Proto(Error),
Io(Arc<Error>),
Internal(&'static str),
}
Expand description
An error returned by a channel manager.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnusableTarget(String)
Tuple Fields
0: String
A ChanTarget was given for which no channel could be built.
PendingFailed
We were waiting on a pending channel, but it didn’t succeed.
ChanTimeout
It took too long for us to establish this connection.
Proto(Error)
Tuple Fields
0: Error
A protocol error while making a channel
Io(Arc<Error>)
A protocol error while making a channel
Internal(&'static str)
Tuple Fields
0: &'static str
An internal error of some kind that should never occur.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more