pub enum LndError {
Show 17 variants
Docker(DockerError),
BitcoinRpc(BitcoinRpcError),
MissingBitcoindIp,
MissingHostPort {
container_id: String,
container_port: u16,
},
Connect {
socket: String,
message: String,
},
Rpc {
socket: String,
method: &'static str,
message: String,
},
InvalidPublicKey {
public_key: String,
message: String,
},
Startup {
alias: String,
container_id: String,
logs: Option<String>,
source: Box<LndError>,
},
UnauthenticatedChannel {
socket: String,
message: String,
},
WalletInitTimeout {
attempts: usize,
last_error: Option<String>,
},
ReadyTimeout {
attempts: usize,
last_error: Option<String>,
},
FileTimeout {
container_id: String,
path: String,
attempts: usize,
last_error: Option<String>,
},
BalanceTimeout {
alias: String,
minimum_sat: i64,
attempts: usize,
last_error: Option<String>,
},
UtxoTimeout {
alias: String,
minimum_sat: i64,
attempts: usize,
last_error: Option<String>,
},
PendingChannelTimeout {
alias: String,
remote_public_key: String,
channel_point: String,
attempts: usize,
last_error: Option<String>,
},
ActiveChannelTimeout {
alias: String,
remote_public_key: String,
channel_point: String,
attempts: usize,
last_error: Option<String>,
},
PeerConnectTimeout {
alias: String,
public_key: String,
attempts: usize,
last_error: Option<String>,
},
}Expand description
Error returned by LND lifecycle and RPC helpers.
Variants§
Docker(DockerError)
BitcoinRpc(BitcoinRpcError)
MissingBitcoindIp
MissingHostPort
Connect
Rpc
InvalidPublicKey
Startup
UnauthenticatedChannel
WalletInitTimeout
ReadyTimeout
FileTimeout
BalanceTimeout
UtxoTimeout
PendingChannelTimeout
Fields
ActiveChannelTimeout
Fields
PeerConnectTimeout
Trait Implementations§
Source§impl Error for LndError
impl Error for LndError
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<BitcoinRpcError> for LndError
impl From<BitcoinRpcError> for LndError
Source§fn from(source: BitcoinRpcError) -> Self
fn from(source: BitcoinRpcError) -> Self
Converts to this type from the input type.
Source§impl From<DockerError> for LndError
impl From<DockerError> for LndError
Source§fn from(source: DockerError) -> Self
fn from(source: DockerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LndError
impl !RefUnwindSafe for LndError
impl Send for LndError
impl Sync for LndError
impl Unpin for LndError
impl UnsafeUnpin for LndError
impl !UnwindSafe for LndError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.