#[non_exhaustive]pub enum NetError {
Io(Error),
Protocol(String),
Auth(String),
Remote(String),
Envelope(Error),
Timeout,
Unsupported(&'static str),
BadLocation(String),
}Expand description
Errors surfaced by network-attached rigging adapters.
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(Error)
I/O failure on the underlying socket.
Protocol(String)
Wire protocol error (malformed frame, unexpected reply shape).
Auth(String)
Authentication failed.
Remote(String)
The remote returned an explicit error.
Envelope(Error)
JSON decoding of a crate::RecordEnvelope failed.
Timeout
Server reply did not arrive within the configured timeout.
Unsupported(&'static str)
Op not supported over this transport (e.g. iter_vectors over RESP3 in v0.1).
BadLocation(String)
Malformed crate::TenantLocation string.
Trait Implementations§
Source§impl Error for NetError
impl Error for NetError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for NetError
impl !UnwindSafe for NetError
impl Freeze for NetError
impl Send for NetError
impl Sync for NetError
impl Unpin for NetError
impl UnsafeUnpin for NetError
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