pub enum ProtocolVersioned<T>where
T: ProtocolV,{
V1(T::V1),
V2(T::V2),
}Expand description
A versioned protocol type that can be either V1 or V2.
This enum wraps protocol-specific types to allow handling both versions in a unified way.
Variants§
Auto Trait Implementations§
impl<T> Freeze for ProtocolVersioned<T>
impl<T> RefUnwindSafe for ProtocolVersioned<T>
impl<T> Send for ProtocolVersioned<T>
impl<T> Sync for ProtocolVersioned<T>
impl<T> Unpin for ProtocolVersioned<T>
impl<T> UnwindSafe for ProtocolVersioned<T>
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