error[E0599]: no method named `protocol` found for struct `socket2::Socket` in the current scope
--> src\net\socket.rs:118:25
|
118 | self.socket.protocol()?,
| ^^^^^^^^ method not found in `Socket`
For more information about this error, try `rustc --explain E0599`.