pub enum Error {
Show 37 variants
InvalidMessage(String),
IoError(Error),
BinRWError(Error),
ParsingError(TryFromIntError),
ConnectionStopped,
Cancelled(&'static str),
InvalidState(String),
TranformFailed(TransformError),
CryptoError(CryptoError),
NegotiationError(String),
SignatureVerificationFailed,
UnexpectedMessageStatus(u32),
ReceivedErrorMessage(u32, ErrorResponse),
UnexpectedMessageCommand(Command),
MissingPermissions(String),
SspiError(Error),
BufferTooSmall {
data_type: &'static str,
required: Option<usize>,
provided: usize,
},
UrlParseError(ParseError),
UnsupportedAuthenticationMechanism(String),
CompressionError(CompressionError),
MessageProcessingError(String),
OperationTimeout(TimedOutTask, Duration),
LockError,
JoinError(JoinError),
AcquireError(AcquireError),
UnexpectedMessageId(u64, u64),
InvalidConfiguration(String),
InvalidArgument(String),
UnsupportedOperation(String),
DfsError(UncPath),
NotFound(String),
ChannelNotFound(u64, u32),
RpcError(SmbRpcError),
SmbMessageError(SmbMsgError),
FsccError(SmbFsccError),
TransportError(TransportError),
Other(&'static str),
}Variants§
InvalidMessage(String)
IoError(Error)
BinRWError(Error)
ParsingError(TryFromIntError)
ConnectionStopped
Indicates connection stopped - due to error or closed by user.
See TransportError::NotConnected for transport-level disconnection.
Usually, this is the actual error returned when trying to use a stopped connection, anyway.
Cancelled(&'static str)
InvalidState(String)
TranformFailed(TransformError)
CryptoError(CryptoError)
NegotiationError(String)
Indicates that the negotiation phase of the SMB protocol failed.
This might be due to incompatible protocol versions, unsupported features, or configuration issues between the client and server.
SignatureVerificationFailed
UnexpectedMessageStatus(u32)
ReceivedErrorMessage(u32, ErrorResponse)
UnexpectedMessageCommand(Command)
MissingPermissions(String)
SspiError(Error)
Indicates an error sourced from the underlying authentication SSPI (Security Support Provider Interface) library.
SSPI is used for handling authentication mechanisms like NTLM and Kerberos.
For more references, see the sspi crate documentation
BufferTooSmall
UrlParseError(ParseError)
UnsupportedAuthenticationMechanism(String)
CompressionError(CompressionError)
MessageProcessingError(String)
OperationTimeout(TimedOutTask, Duration)
LockError
JoinError(JoinError)
AcquireError(AcquireError)
UnexpectedMessageId(u64, u64)
InvalidConfiguration(String)
InvalidArgument(String)
UnsupportedOperation(String)
DfsError(UncPath)
NotFound(String)
ChannelNotFound(u64, u32)
RpcError(SmbRpcError)
SmbMessageError(SmbMsgError)
FsccError(SmbFsccError)
TransportError(TransportError)
Other(&'static str)
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)>
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<AcquireError> for Error
impl From<AcquireError> for Error
Source§fn from(source: AcquireError) -> Self
fn from(source: AcquireError) -> Self
Converts to this type from the input type.
Source§impl From<CompressionError> for Error
impl From<CompressionError> for Error
Source§fn from(source: CompressionError) -> Self
fn from(source: CompressionError) -> Self
Converts to this type from the input type.
Source§impl From<CryptoError> for Error
impl From<CryptoError> for Error
Source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl<T> From<PoisonError<T>> for Error
impl<T> From<PoisonError<T>> for Error
Source§fn from(_: PoisonError<T>) -> Self
fn from(_: PoisonError<T>) -> Self
Converts to this type from the input type.
Source§impl From<SmbFsccError> for Error
impl From<SmbFsccError> for Error
Source§fn from(source: SmbFsccError) -> Self
fn from(source: SmbFsccError) -> Self
Converts to this type from the input type.
Source§impl From<SmbMsgError> for Error
impl From<SmbMsgError> for Error
Source§fn from(source: SmbMsgError) -> Self
fn from(source: SmbMsgError) -> Self
Converts to this type from the input type.
Source§impl From<SmbRpcError> for Error
impl From<SmbRpcError> for Error
Source§fn from(source: SmbRpcError) -> Self
fn from(source: SmbRpcError) -> Self
Converts to this type from the input type.
Source§impl From<TransportError> for Error
impl From<TransportError> for Error
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more
Source§impl<T> CustomError for T
impl<T> CustomError for 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.