#[non_exhaustive]pub enum ClientError {
Io(String),
Handshake(HandshakeError),
Stream(StreamError),
}Expand description
Errors emitted by the high-level SDK client.
These variants indicate what happened during discovery/handshake, streaming, or UDP transport. They correspond to the guarantees documented on each method.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(String)
OS-level failures such as socket bind/send errors or missing session data.
Handshake(HandshakeError)
Handshake or session establishment failures propagated from AlnpSession.
Stream(StreamError)
Streaming transport errors (e.g., AlnpStream::send).
Trait Implementations§
Source§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl From<Error> for ClientError
impl From<Error> for ClientError
Source§impl From<HandshakeError> for ClientError
impl From<HandshakeError> for ClientError
Source§fn from(err: HandshakeError) -> Self
fn from(err: HandshakeError) -> Self
Converts to this type from the input type.
Source§impl From<StreamError> for ClientError
impl From<StreamError> for ClientError
Source§fn from(err: StreamError) -> Self
fn from(err: StreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClientError
impl RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl UnwindSafe for ClientError
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