Struct msg_transmitter::uds::UDSMsgClient [−][src]
pub struct UDSMsgClient<T> { /* fields omitted */ }Methods
impl<T> UDSMsgClient<T> where
T: DeserializeOwned + Serialize + Send + 'static + Clone, [src]
impl<T> UDSMsgClient<T> where
T: DeserializeOwned + Serialize + Send + 'static + Clone, pub fn new(path_name: &str, client_name: &str) -> UDSMsgClient<T>[src]
pub fn new(path_name: &str, client_name: &str) -> UDSMsgClient<T>addr is socket address. like: 127.0.0.1:6666. name is the client's name, to identity which client it is.
pub fn start_client<F>(
&self,
process_function: F
) -> Box<Future<Item = (), Error = ()> + Send + 'static> where
F: FnMut(T) -> Vec<T> + Send + Sync + 'static, [src]
pub fn start_client<F>(
&self,
process_function: F
) -> Box<Future<Item = (), Error = ()> + Send + 'static> where
F: FnMut(T) -> Vec<T> + Send + Sync + 'static, process_function receive a message from server and send a series of messages to server
Trait Implementations
impl<T: Debug> Debug for UDSMsgClient<T>[src]
impl<T: Debug> Debug for UDSMsgClient<T>Auto Trait Implementations
impl<T> Send for UDSMsgClient<T> where
T: Send,
impl<T> Send for UDSMsgClient<T> where
T: Send, impl<T> Sync for UDSMsgClient<T> where
T: Sync,
impl<T> Sync for UDSMsgClient<T> where
T: Sync,