pub enum PsrpError {
Winrm(WinrmError),
Protocol(String),
Clixml(String),
Fragment(String),
BadState {
expected: String,
actual: String,
},
Stopped,
PipelineFailed(String),
Cancelled,
}Expand description
Errors raised by psrp-rs operations.
Transport-level failures from winrm-rs are wrapped via From<WinrmError>.
Variants§
Winrm(WinrmError)
Transport-level error from winrm-rs.
Protocol(String)
PSRP protocol-level error (unexpected message, bad state transition, …).
Clixml(String)
CLIXML parse / encode failure.
Fragment(String)
Fragment reassembly failure (truncated header, inconsistent blob length, …).
BadState
The runspace pool was in the wrong state for the requested operation.
Fields
Stopped
The pipeline was stopped by the caller or by the server.
PipelineFailed(String)
The pipeline failed on the server side (a PipelineState=Failed message).
Cancelled
An operation was cancelled.
Trait Implementations§
Source§impl Error for PsrpError
impl Error for PsrpError
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<WinrmError> for PsrpError
impl From<WinrmError> for PsrpError
Source§fn from(source: WinrmError) -> Self
fn from(source: WinrmError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PsrpError
impl !RefUnwindSafe for PsrpError
impl Send for PsrpError
impl Sync for PsrpError
impl Unpin for PsrpError
impl UnsafeUnpin for PsrpError
impl !UnwindSafe for PsrpError
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> 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.