Closed newfla closed 10 months ago
@veeso I've missed a trait bound in both async and sync code. Similarly, Sync trait can be added to make the use of the library much more ergonomic in multi-threaded contexts. Should I prepare a new pr or would you prefer an addition to this one?
@newfla No, I think you can add it here. Thank you in advance
45 - Send + Sync traits to AsyncFtpStream/FtpStream
Fixes #45
Description
To make AsyncFtpStream/FtpStream Send+Sync, tls_ctx should be declared as Send+Sync. AsyncTlsConnector and TlsConnector already satisfay Send+Sync traits so no breaking change is expected
List here your changes
tls_ctx: Option<Box<dyn AsyncTlsConnector<Stream = T>>>
totls_ctx: Option<Box<dyn AsyncTlsConnector<Stream = T> + Send + Sync + 'static>
Type of change
Please select relevant options.
Acceptance tests
wait for a project maintainer to fulfill this section...