pub enum NetconfError {
Transport(TransportError),
Framing(FramingError),
Rpc(RpcError),
Protocol(ProtocolError),
}Expand description
Top-level error type for all rustnetconf operations.
Variants§
Transport(TransportError)
SSH or network transport errors.
Framing(FramingError)
NETCONF message framing errors.
Rpc(RpcError)
NETCONF RPC-level errors (device rejected the operation).
Protocol(ProtocolError)
NETCONF protocol-level errors (capability, session state).
Trait Implementations§
Source§impl Debug for NetconfError
impl Debug for NetconfError
Source§impl Display for NetconfError
impl Display for NetconfError
Source§impl Error for NetconfError
impl Error for NetconfError
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<FramingError> for NetconfError
impl From<FramingError> for NetconfError
Source§fn from(source: FramingError) -> Self
fn from(source: FramingError) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolError> for NetconfError
impl From<ProtocolError> for NetconfError
Source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<RpcError> for NetconfError
impl From<RpcError> for NetconfError
Source§impl From<TransportError> for NetconfError
impl From<TransportError> for NetconfError
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NetconfError
impl !RefUnwindSafe for NetconfError
impl Send for NetconfError
impl Sync for NetconfError
impl Unpin for NetconfError
impl UnsafeUnpin for NetconfError
impl !UnwindSafe for NetconfError
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