pub enum PyroLinkError {
Connection(ConnectionError),
Stream(String),
Io(Error),
Framing(String),
UnknownRpcType(u8),
Tls(String),
Bind(String),
Flight(String),
Internal(String),
}Expand description
Errors that can occur in the PyroLink layer.
Variants§
Connection(ConnectionError)
A QUIC connection-level error reported by quinn.
Stream(String)
Failed to accept or open a QUIC stream.
Io(Error)
An I/O error on the underlying QUIC stream.
Framing(String)
The wire frame received from the client was malformed.
UnknownRpcType(u8)
The RPC type byte was not recognised.
Tls(String)
TLS configuration was invalid.
Bind(String)
The server endpoint could not be bound to the requested address.
Flight(String)
An error propagated from the Flight SQL layer.
Internal(String)
An internal, unexpected error.
Trait Implementations§
Source§impl Debug for PyroLinkError
impl Debug for PyroLinkError
Source§impl Display for PyroLinkError
impl Display for PyroLinkError
Source§impl Error for PyroLinkError
impl Error for PyroLinkError
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<ConnectionError> for PyroLinkError
impl From<ConnectionError> for PyroLinkError
Source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for PyroLinkError
impl From<Error> for PyroLinkError
Source§impl From<ReadExactError> for PyroLinkError
impl From<ReadExactError> for PyroLinkError
Source§fn from(e: ReadExactError) -> Self
fn from(e: ReadExactError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for PyroLinkError
impl !RefUnwindSafe for PyroLinkError
impl Send for PyroLinkError
impl Sync for PyroLinkError
impl Unpin for PyroLinkError
impl UnsafeUnpin for PyroLinkError
impl !UnwindSafe for PyroLinkError
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