pub enum CoreError {
Io(Error),
LocalIo(Error),
Protocol(ProtocolError),
Auth(AuthError),
UnexpectedCommand {
expected: Command,
actual: Command,
},
UnexpectedStatus {
command: Command,
status: u32,
},
InvalidResponse(&'static str),
InvalidInput(&'static str),
PathInvalid(&'static str),
Unsupported(&'static str),
RemoteOperation {
operation: &'static str,
code: u32,
},
Timeout(&'static str),
}Expand description
Errors returned while driving SMB requests over a transport.
Variants§
Io(Error)
The transport returned an I/O failure.
LocalIo(Error)
The local filesystem or local stream returned an I/O failure.
Protocol(ProtocolError)
Packet encoding or decoding failed.
Auth(AuthError)
Authentication token processing failed.
UnexpectedCommand
The server responded with a different command than expected.
Fields
UnexpectedStatus
The server returned a status code that the caller did not allow.
InvalidResponse(&'static str)
The response was structurally valid but semantically unusable.
InvalidInput(&'static str)
The caller supplied invalid input to a high-level API.
PathInvalid(&'static str)
The caller supplied an invalid SMB share path or UNC path.
Unsupported(&'static str)
The requested operation is valid but not supported by the negotiated session or server.
RemoteOperation
A remote RPC or service-control operation returned a failure code.
Timeout(&'static str)
The requested operation exceeded its timeout budget.
Trait Implementations§
Source§impl Error for CoreError
impl Error for CoreError
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<ProtocolError> for CoreError
impl From<ProtocolError> for CoreError
Source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Auto Trait Implementations§
impl Freeze for CoreError
impl !RefUnwindSafe for CoreError
impl Send for CoreError
impl Sync for CoreError
impl Unpin for CoreError
impl UnsafeUnpin for CoreError
impl !UnwindSafe for CoreError
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.