ExaConnectOptionsBuilder setters take &mut self, but building the ExaConnectOptions requires ownership. The type was initially made to be used internally and only afterwards made public, but this design makes method chaining and building impossible.
Therefore, it might be better to simply take mut self in setters to make the builder more ergonomic for consumer code.
ExaConnectOptionsBuilder
setters take&mut self
, but building theExaConnectOptions
requires ownership. The type was initially made to be used internally and only afterwards made public, but this design makes method chaining and building impossible.Therefore, it might be better to simply take
mut self
in setters to make the builder more ergonomic for consumer code.