[][src]Trait new_home_application::communication::client_handler::ClientHandler

pub trait ClientHandler {
    fn handle(&mut self) -> Result<(), Error>;
}

The interface for the client handler Interacts with the connected client Receives the requests, handles it and sends the response back Returns errors in the form of the std::io::Error struct

Required methods

fn handle(&mut self) -> Result<(), Error>

Handles the client connection Reads the request in JSON format via the given TcpReader The responsible method callback will be requested from the MethodManager Writs the result in JSON format back via the given TcpWriter Errors that occur are send back in JSON format as well with the given TcpWriter

Loading content...

Implementors

impl<'_> ClientHandler for ClientHandlerImpl<'_>[src]

Loading content...