Trait netemul::RealmUdpSocket
source · pub trait RealmUdpSocket: Sized {
fn bind_in_realm<'a>(
realm: &'a TestRealm<'a>,
addr: SocketAddr
) -> LocalBoxFuture<'a, Result<Self, Error>>;
}
Expand description
Trait describing UDP sockets that can be bound in a testing realm.
Required Methods§
sourcefn bind_in_realm<'a>(
realm: &'a TestRealm<'a>,
addr: SocketAddr
) -> LocalBoxFuture<'a, Result<Self, Error>>
fn bind_in_realm<'a>(
realm: &'a TestRealm<'a>,
addr: SocketAddr
) -> LocalBoxFuture<'a, Result<Self, Error>>
Creates a UDP socket in realm
bound to addr
.