pub enum LightstreamerError {
InvalidArgument(String),
InvalidState(String),
Connection(String),
Subscription(String),
Configuration(String),
Protocol(String),
Channel(String),
Parse(String),
Authentication(String),
Network(String),
Timeout(String),
Lock(String),
}Expand description
Unified error type for the Lightstreamer client library.
This enum consolidates all error types that can occur during Lightstreamer operations, providing typed error handling throughout the library.
Variants§
InvalidArgument(String)
An illegal or inappropriate argument was passed to a method.
InvalidState(String)
A method was invoked at an illegal or inappropriate time, or the object is in an inappropriate state.
Connection(String)
A connection-related error occurred.
Subscription(String)
A subscription-related error occurred.
Configuration(String)
A configuration-related error occurred.
Protocol(String)
A protocol-related error occurred during message parsing or handling.
Channel(String)
A channel communication error occurred.
Parse(String)
A parsing error occurred.
Authentication(String)
An authentication error occurred.
Network(String)
A network error occurred.
Timeout(String)
A timeout occurred.
Lock(String)
A lock acquisition error occurred.
Implementations§
Source§impl LightstreamerError
impl LightstreamerError
Sourcepub fn invalid_argument(msg: impl Into<String>) -> Self
pub fn invalid_argument(msg: impl Into<String>) -> Self
Creates an invalid argument error.
Sourcepub fn invalid_state(msg: impl Into<String>) -> Self
pub fn invalid_state(msg: impl Into<String>) -> Self
Creates an invalid state error.
Sourcepub fn connection(msg: impl Into<String>) -> Self
pub fn connection(msg: impl Into<String>) -> Self
Creates a connection error.
Sourcepub fn subscription(msg: impl Into<String>) -> Self
pub fn subscription(msg: impl Into<String>) -> Self
Creates a subscription error.
Sourcepub fn configuration(msg: impl Into<String>) -> Self
pub fn configuration(msg: impl Into<String>) -> Self
Creates a configuration error.
Trait Implementations§
Source§impl Clone for LightstreamerError
impl Clone for LightstreamerError
Source§fn clone(&self) -> LightstreamerError
fn clone(&self) -> LightstreamerError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more