Closed carlocorradini closed 1 month ago
Unfortunately the following does not compile due to Send
(it is required?)
fn connect(
streamer: impl Into<StreamerUri>,
options: Self::ConnectOptions,
) -> impl Future<Output = StreamResult<Self, Self::Error>> + Send;
it is possible, if we add Send
as a trait bound?
fn connect<S>(
streamer: S,
options: Self::ConnectOptions,
) -> impl Future<Output = StreamResult<Self, Self::Error>> + Send
where S: Into<StreamerUri> + Send, {}
Done 🥳
Sad, there was a bunch of errors, where type inference fails.
I'll fix it ASAP.
Sadness... I've run cargo build --all --all-features
(same for test) and it worked.
It can be reproduced by cargo test --no-run
. May be we change to parse::< StreamerUri >()
in all cases
Done 🥳
PR Info
Added
From<Url>
andFromIterator<Url>
forStreamerUri
.New Features
impl From<Url> for StreamerUri
impl FromIterator<Url> for StreamerUri