pub enum WinrmError {
Http(Error),
AuthFailed(String),
Ntlm(NtlmError),
Soap(SoapError),
Timeout(u64),
Transfer(String),
Cancelled,
CredSsp(CredSspError),
}Expand description
Errors that can occur during WinRM operations.
Variants cover the full error surface: HTTP transport, authentication handshake, NTLM protocol, SOAP-level faults, and operation timeouts.
Variants§
Http(Error)
HTTP transport error from reqwest (connection refused, timeout, TLS, etc.).
AuthFailed(String)
Authentication was rejected by the server (bad credentials, unexpected HTTP status during NTLM handshake, missing headers).
Ntlm(NtlmError)
NTLM protocol error (malformed challenge message, bad signature, etc.).
Soap(SoapError)
SOAP-level fault or XML parsing error returned by the WinRM service.
Timeout(u64)
The operation exceeded the configured timeout.
Transfer(String)
File transfer error (upload or download failure).
Cancelled
The operation was cancelled via a CancellationToken.
CredSsp(CredSspError)
CredSSP protocol error.
Trait Implementations§
Source§impl Debug for WinrmError
impl Debug for WinrmError
Source§impl Display for WinrmError
impl Display for WinrmError
Source§impl Error for WinrmError
impl Error for WinrmError
1.30.0 · 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
use the Display impl or to_string()
Source§impl From<WinrmError> for PsrpError
impl From<WinrmError> for PsrpError
Source§fn from(source: WinrmError) -> Self
fn from(source: WinrmError) -> Self
Auto Trait Implementations§
impl Freeze for WinrmError
impl !RefUnwindSafe for WinrmError
impl Send for WinrmError
impl Sync for WinrmError
impl Unpin for WinrmError
impl UnsafeUnpin for WinrmError
impl !UnwindSafe for WinrmError
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> 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.