Lines Matching refs:Service
371 pub trait Service { trait
450 impl<T, U: Deserialize, V: Service<Connection = T, Message = U>> UnbufferedService for V {
451 type Connection = <Self as Service>::Connection;
459 <Self as Service>::on_connect(self, port, handle, peer) in on_connect()
470 let msg = <Self as Service>::Message::deserialize( in on_message()
478 <Self as Service>::on_message(self, connection, handle, msg) in on_message()
482 <Self as Service>::on_disconnect(self, connection) in on_disconnect()
486 <Self as Service>::Message::MAX_SERIALIZED_SIZE in max_message_length()
517 ($vis:vis $wrapper:ident ($inner:ty: Service)) => {
539 impl $crate::Service for $wrapper {
540 type Connection = <$inner as $crate::Service>::Connection;
541 type Message = <$inner as $crate::Service>::Message;
549 <$inner as $crate::Service>::on_connect(&self.0, port, handle, peer)
558 <$inner as $crate::Service>::on_message(&self.0, connection, handle, msg)
562 <$inner as $crate::Service>::on_disconnect(&self.0, connection)
643 pub struct SingleDispatcher<S: Service> {
648 impl<S: Service> SingleDispatcher<S> {
654 impl<S: Service> Dispatcher for SingleDispatcher<S> {
916 S: Service,
1190 use super::{PortCfg, Service};
1215 impl Service for () { impl
1386 impl Service for Service1 {
1412 impl Service for Service2 {
1461 wrap_service!(WrappedService2(Service2: Service));
1529 impl<'a> Service for Service1<'a> {
1557 impl<'a> Service for Service2<'a> {