Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/evilsocket/cake
/ bind
Method
bind
cake-core/tests/protocol.rs:53–56 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
51
52
impl MockWorker {
53
async fn bind() -> Self {
54
let listener = TcpListener::bind(
"127.0.0.1:0"
).await.unwrap();
55
Self { listener }
56
}
57
58
fn addr(&self) -> SocketAddr {
59
self.listener.local_addr().unwrap()
Callers
1
start
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected