#[non_exhaustive]pub enum BackendConnection {
Valkey(ValkeyConnection),
}Expand description
Discriminated union over per-backend connection shapes. Stage 1a
ships the Valkey arm; future backends (Postgres) land additively
under the #[non_exhaustive] guard.
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.
Valkey(ValkeyConnection)
Trait Implementations§
Source§impl Clone for BackendConnection
impl Clone for BackendConnection
Source§fn clone(&self) -> BackendConnection
fn clone(&self) -> BackendConnection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackendConnection
impl Debug for BackendConnection
Source§impl PartialEq for BackendConnection
impl PartialEq for BackendConnection
impl Eq for BackendConnection
impl StructuralPartialEq for BackendConnection
Auto Trait Implementations§
impl Freeze for BackendConnection
impl RefUnwindSafe for BackendConnection
impl Send for BackendConnection
impl Sync for BackendConnection
impl Unpin for BackendConnection
impl UnsafeUnpin for BackendConnection
impl UnwindSafe for BackendConnection
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