error: mismatched types: expected socket::sockaddr_basicbut found{family: int} (expected a record with field 'family' but found one with field 'sin_family')
The "expected a record with" looks like it should be the other way around, since the actual code I wrote was {family:0}.