We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a99150a commit fd43000Copy full SHA for fd43000
rsocket/Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "rsocket_rust"
3
-version = "0.7.4"
+version = "0.7.5"
4
authors = ["Jeffsky <[email protected]>"]
5
edition = "2021"
6
license = "Apache-2.0"
rsocket/src/spi.rs
@@ -7,7 +7,7 @@ use futures::Stream;
7
use crate::payload::{Payload, SetupPayload};
8
use crate::Result;
9
10
-pub type ClientResponder = Box<dyn Send + Sync + Fn() -> Box<dyn RSocket>>;
+pub type ClientResponder = Box<dyn Send + Sync + FnOnce() -> Box<dyn RSocket>>;
11
pub type ServerResponder =
12
Box<dyn Send + Sync + Fn(SetupPayload, Box<dyn RSocket>) -> Result<Box<dyn RSocket>>>;
13
0 commit comments