pub struct RelayServiceRouter {
blob_service: BlobServiceImpl,
message_service: RedisMessageStorage,
}Fields§
§blob_service: BlobServiceImpl§message_service: RedisMessageStorageImplementations§
Source§impl RelayServiceRouter
impl RelayServiceRouter
pub fn new( blob_service: BlobServiceImpl, message_service: RedisMessageStorage, ) -> Self
Trait Implementations§
Source§impl ServiceRouter for RelayServiceRouter
impl ServiceRouter for RelayServiceRouter
Source§type ServiceId = ZoeServices
type ServiceId = ZoeServices
The typed service identifier (e.g., an enum)
Source§type Error = ServiceError
type Error = ServiceError
The error type returned by routing operations
Source§fn parse_service_id<'life0, 'async_trait>(
&'life0 self,
service_id: u8,
) -> Pin<Box<dyn Future<Output = Result<Self::ServiceId, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn parse_service_id<'life0, 'async_trait>(
&'life0 self,
service_id: u8,
) -> Pin<Box<dyn Future<Output = Result<Self::ServiceId, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Parse a raw service ID byte into a typed service identifier Read more
Source§fn create_service<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
service_id: &'life1 Self::ServiceId,
_connection_info: &'life2 ConnectionInfo,
streams: StreamPair,
) -> Pin<Box<dyn Future<Output = Result<Self::Service, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn create_service<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
service_id: &'life1 Self::ServiceId,
_connection_info: &'life2 ConnectionInfo,
streams: StreamPair,
) -> Pin<Box<dyn Future<Output = Result<Self::Service, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create a service instance for the given service ID Read more
Auto Trait Implementations§
impl Freeze for RelayServiceRouter
impl !RefUnwindSafe for RelayServiceRouter
impl Send for RelayServiceRouter
impl Sync for RelayServiceRouter
impl Unpin for RelayServiceRouter
impl !UnwindSafe for RelayServiceRouter
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more