Enum async_nats::Protocol
source · [−]#[repr(u8)]
pub enum Protocol {
Original,
Dynamic,
}
Expand description
Protocol version used by the client.
Variants
Original
Original protocol.
Dynamic
Protocol with dynamic reconfiguration of cluster and lame duck mode functionality.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Protocol
impl<'de> Deserialize<'de> for Protocol
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Protocol
impl StructuralPartialEq for Protocol
Auto Trait Implementations
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnwindSafe for Protocol
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more