Enum zmtp::VersionPolicy
[−]
[src]
pub enum VersionPolicy { Demand, Negotiate, }
The policy that should be used in version handshaking.
Variants
Demand
Demand to use ZMTP 3.x. If the remote peer can not accommodate this, terminate the connection.
Negotiate
Try to detect the remote peer's version and negotiate, dropping back to earlier ZMTP versions if necessary.
Methods
impl VersionPolicy
[src]
Trait Implementations
impl Debug for VersionPolicy
[src]
impl Copy for VersionPolicy
[src]
impl Clone for VersionPolicy
[src]
fn clone(&self) -> VersionPolicy
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more