pub fn new(addr: SocketAddr, socket: UdpSocket) -> Self {
        let stub = AccountantStub {
            addr: addr,
            socket,
            last_id: None,
            num_events: 0,
            balances: HashMap::new(),
        };
        stub.init();
        stub
    }
/// Create a new AccountantStub that will interface with AccountantSkel
/// over `socket`. To receive responses, the caller must bind `socket`
/// to a public address before invoking AccountantStub methods.
Create a new AccountantStub that will interface with AccountantSkel
over `socket`. To receive responses, the caller must bind `socket`
to a public address before invoking AccountantStub methods.
Create a new AccountantStub that will interface with AccountantSkel over ` socket ` . To receive responses the caller must bind ` socket ` to a public address before invoking AccountantStub methods .
pub fn new(addr: SocketAddr, socket: UdpSocket) -> Self {
        let stub = AccountantStub {
            addr: addr,
            socket,
            last_id: None,
            num_events: 0,
            balances: HashMap::new(),
        };
        stub.init();
        stub
    }
pub fn new ( addr : SocketAddr , socket : UdpSocket ) -> Self { let stub = AccountantStub { addr : addr , socket , last_id : None , num_events : 0 , balances : HashMap :: new ( ) , } ; stub . init ( ) ; stub }
Create a new AccountantStub that will interface with AccountantSkel
over `socket`.
Create a new AccountantStub that will interface with AccountantSkel over ` socket ` .
addr
SocketAddr
socket
UdpSocket
addr
SocketAddr
socket
UdpSocket