pub enum Error {
Show 29 variants
SshTransport(Error),
TlsTransport(Error),
Transport(Error),
EnqueueMessage(SendError<Bytes>),
DequeueMessage,
InvalidDnsName(InvalidDnsNameError),
Authentication {
username: String,
},
VersionNegotiation,
MessageIdCollision {
message_id: MessageId,
},
RequestNotFound {
message_id: MessageId,
},
RequestComplete,
WriteMessage(WriteError),
ReadMessage(ReadError),
DeleteRunningConfig,
InvalidSessionId {
session_id: u32,
},
KillCurrentSession,
UnsupportedOperation {
operation_name: &'static str,
required_capabilities: Requirements,
},
UnsupportedOperationParameter {
operation_name: &'static str,
param_name: &'static str,
required_capabilities: Requirements,
},
UnsupportedOperParameterValue {
operation_name: &'static str,
param_name: &'static str,
param_value: &'static str,
required_capabilities: Requirements,
},
UnsupportedSource {
datastore: Datastore,
required_capabilities: Requirements,
},
UnsupportedTarget {
datastore: Datastore,
required_capabilities: Requirements,
},
UnsupportedLockTarget {
datastore: Datastore,
required_capabilities: Requirements,
},
UnsupportedUrlScheme {
url: Box<UriStr>,
},
UnsupportedFilterType {
filter: &'static str,
required_capabilities: Requirements,
},
MissingOperationParameter {
operation_name: &'static str,
param_name: &'static str,
},
IncompatibleOperationParameters {
operation_name: &'static str,
parameters: Vec<&'static str>,
},
UrlParse(Error),
RpcError(Errors),
EmptyRpcReply,
}ssh or tls only.Expand description
netconf library error variants
Variants§
SshTransport(Error)
ssh only.The underlying SSH transport encountered an error.
TlsTransport(Error)
tls only.The underlying TLS transport encountered an error.
Transport(Error)
The underlying transport encountered an error.
EnqueueMessage(SendError<Bytes>)
Failure to enqueue an inter-task message.
DequeueMessage
Failure to dequeue an inter-task message.
InvalidDnsName(InvalidDnsNameError)
tls only.Invalid DNS name for certificate validation.
Authentication
User authentication failed.
VersionNegotiation
Base protocol version negotiation failed.
MessageIdCollision
A message-id collision was detected.
RequestNotFound
Received a message with an unknown message-id.
RequestComplete
Attempted to process an already completed request.
WriteMessage(WriteError)
Message serialization failed.
ReadMessage(ReadError)
Message de-serialization failed
DeleteRunningConfig
Attempted to perform delete-config operation targeting the running datastore.
InvalidSessionId
Invalid session-id.
KillCurrentSession
Attempted to perform kill-session operation targeting the current session.
UnsupportedOperation
Attempted to perform an unsupported operation.
Fields
required_capabilities: RequirementsRequired server capabilities.
UnsupportedOperationParameter
Attempted to set an unsupported operation parameter.
Fields
required_capabilities: RequirementsRequired server capabilities.
UnsupportedOperParameterValue
Attempted to set an operation parameter to an unsupported value.
Fields
required_capabilities: RequirementsRequired server capabilities.
UnsupportedSource
Attempted to perform an operation on an unsupported source datastore.
Fields
required_capabilities: RequirementsRequired server capabilities.
UnsupportedTarget
Attempted to perform an operation on an unsupported target datastore.
Fields
required_capabilities: RequirementsRequired server capabilities.
UnsupportedLockTarget
Attempted to lock an unsupported datastore.
Fields
required_capabilities: RequirementsRequired server capabilities.
UnsupportedUrlScheme
Unsupported URL scheme.
UnsupportedFilterType
Unsupported filter type.
Fields
required_capabilities: RequirementsRequired server capabilities.
MissingOperationParameter
Missing a required operation parameter.
Fields
IncompatibleOperationParameters
Incompatible combination of operation parameters.
Fields
UrlParse(Error)
Failed to parse a URL
RpcError(Errors)
RPC operation failure.
EmptyRpcReply
Empty rpc-reply when data was expected.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Infallible> for Error
impl From<Infallible> for Error
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Source§impl From<InvalidDnsNameError> for Error
impl From<InvalidDnsNameError> for Error
Source§fn from(source: InvalidDnsNameError) -> Self
fn from(source: InvalidDnsNameError) -> Self
Auto Trait Implementations§
impl !Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
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> 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.