Trait trust_dns::client::ClientConnection
[−]
[src]
pub trait ClientConnection: Sized + Debug { fn send(&mut self, bytes: Vec<u8>) -> ClientResult<Vec<u8>>; }
Trait for client connections
Required Methods
fn send(&mut self, bytes: Vec<u8>) -> ClientResult<Vec<u8>>
Sends a serialized message to via this connection, returning the serialized response.
Arguments
bytes
- the serialized Message
Implementors
impl ClientConnection for UdpClientConnection
impl ClientConnection for TcpClientConnection