Skip to content

Commit 3cc93e7

Browse files
acfoltzerseanmonstar
authored andcommitted
feat(server): give Server::local_addr a more general type
Allows `local_addr` to work for any executor type, rather than just the default `Exec`. The underlying `SpawnAll::local_addr()` is already similarly general, so no other changes are needed other than adding the extra type parameter to the `impl`.
1 parent 6ae5889 commit 3cc93e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl Server<AddrIncoming, ()> {
134134
}
135135

136136
#[cfg(feature = "tcp")]
137-
impl<S> Server<AddrIncoming, S> {
137+
impl<S, E> Server<AddrIncoming, S, E> {
138138
/// Returns the local address that this server is bound to.
139139
pub fn local_addr(&self) -> SocketAddr {
140140
self.spawn_all.local_addr()

0 commit comments

Comments
 (0)