log_error

Function log_error 

Source
pub fn log_error<T: ErrorCode>(error: T)
Expand description

Logs error message

Examples found in repository?
examples/ping_client.rs (line 79)
77    fn handle_response(&mut self, response: Self::ServerMsg) {
78        match response {
79            ServerMsg::Error(error) => log_error(error),
80            ServerMsg::Ping(msg) => {
81                println!("Ping Received From Server: {}", msg);
82                self.ping_count += 1;
83            }
84        }
85    }