#[non_exhaustive]pub enum StreamError {
Show 16 variants
IoError(Error),
JsonError(Error),
NoData,
UnexpectedResponse(String),
ConnectionIdNotPresent,
MisconfiguredStreamURL,
StreamProcessorMalfunction,
HostStringNotPresent,
UnableToLookUpHost {
host: String,
port: u16,
},
UnableConvertDomainToServerName,
UnableConnectToTlsStream,
CannotSetNativeCertificate,
UnableToSetCustomCertificate,
CustomCertificateNotSet,
InvalidCustomCertificate,
LocalCertificateLoadError,
}Expand description
Errors that can occur in the stream processing module. Represents errors that can occur in the stream processing module.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
IoError(Error)
Represents an I/O error.
JsonError(Error)
Represents a JSON parsing error.
NoData
Indicates that no data was received.
UnexpectedResponse(String)
Indicates an unexpected response from the stream.
ConnectionIdNotPresent
Indicates that the connection ID is not present.
MisconfiguredStreamURL
Indicates a misconfigured stream URL.
StreamProcessorMalfunction
Indicates a malfunction in the stream processor.
HostStringNotPresent
Indicates that the host string is not present in the stream URL.
UnableToLookUpHost
Indicates an inability to look up the host.
UnableConvertDomainToServerName
Indicates an inability to convert a domain to a server name.
UnableConnectToTlsStream
Indicates an inability to connect to a TLS stream.
CannotSetNativeCertificate
Indicates an inability to set the native certificate.
UnableToSetCustomCertificate
Indicates an inability to set a custom certificate.
CustomCertificateNotSet
Indicates that a custom certificate is not set.
InvalidCustomCertificate
Indicates that the custom certificate is invalid.
LocalCertificateLoadError
Indicates an inability to load a local certificate.