Enum zmtp::VersionPolicy [] [src]

pub enum VersionPolicy {
    Demand,
    Negotiate,
}

The policy that should be used in version handshaking.

Variants

Demand to use ZMTP 3.x. If the remote peer can not accommodate this, terminate the connection.

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]

Formats the value using the given formatter.

impl Copy for VersionPolicy
[src]

impl Clone for VersionPolicy
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more