pub trait RealmUdpSocket: Sized {
    // Required method
    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§

source

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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl RealmUdpSocket for UdpSocket

source§

fn bind_in_realm<'a>( realm: &'a TestRealm<'a>, addr: SocketAddr ) -> LocalBoxFuture<'a, Result<Self, Error>>

source§

impl RealmUdpSocket for UdpSocket

source§

fn bind_in_realm<'a>( realm: &'a TestRealm<'a>, addr: SocketAddr ) -> LocalBoxFuture<'a, Result<Self, Error>>

Implementors§