Skip to main content

initialize_remoting_version

Function initialize_remoting_version 

Source
pub fn initialize_remoting_version(
    version: i32,
) -> Result<(), RemotingVersionConflict>
Expand description

Selects the immutable remoting version used by compatibility constructors.

Repeating initialization with the same version is idempotent. A different value is rejected so callers cannot silently change wire defaults after other threads have started constructing commands.

ยงErrors

Returns RemotingVersionConflict when a different value was initialized earlier.