quinn icon indicating copy to clipboard operation
quinn copied to clipboard

ClientConfig transport and ServerConfig transport have different visibility

Open BlinkyStitt opened this issue 1 year ago • 3 comments

ClientConfig's transport has pub(crate), while ServerConfig's transport has pub. Is this difference intentional? I think both should be pub so that updating the client's transport is easier (unless I'm not supposed to be doing that? I'm new to this).

BlinkyStitt avatar Dec 03 '23 21:12 BlinkyStitt

The intention is that you should generally use the setter methods. Does that work for your case? Perhaps we should privatize the ServerConfig fields for consistency.

Ralith avatar Dec 04 '23 00:12 Ralith

Consistency was my main reason for opening the issue.

I don't remember exactly what was missing now, but I think the setters that exist were missing something.

BlinkyStitt avatar Jan 14 '24 23:01 BlinkyStitt

Every time I try to clean this up it turns out to be more complicated than I expected, but we should definitely try to be consistent one way or another here.

Ralith avatar Apr 04 '24 23:04 Ralith