pub struct ServiceMuxDyn<C: Codec> { /* private fields */ }Expand description
A Service mux dispatch with hashmap
Only accepts ServiceDyn register, but provide ServiceDyn and ServiceStatic for calling
Implementations§
Source§impl<C: Codec> ServiceMuxDyn<C>
impl<C: Codec> ServiceMuxDyn<C>
Trait Implementations§
Source§impl<C: Codec> Default for ServiceMuxDyn<C>
impl<C: Codec> Default for ServiceMuxDyn<C>
Source§impl<C: Codec> ServiceStatic<C> for ServiceMuxDyn<C>
impl<C: Codec> ServiceStatic<C> for ServiceMuxDyn<C>
Source§const SERVICE_NAME: &'static str = ""
const SERVICE_NAME: &'static str = ""
For server_mux_struct to match
Source§async fn serve(&self, req: APIServerReq<C>)
async fn serve(&self, req: APIServerReq<C>)
the
#[service] macro should generate code like this: Read moreAuto Trait Implementations§
impl<C> Freeze for ServiceMuxDyn<C>
impl<C> !RefUnwindSafe for ServiceMuxDyn<C>
impl<C> Send for ServiceMuxDyn<C>
impl<C> Sync for ServiceMuxDyn<C>
impl<C> Unpin for ServiceMuxDyn<C>
impl<C> UnsafeUnpin for ServiceMuxDyn<C>
impl<C> !UnwindSafe for ServiceMuxDyn<C>
Blanket Implementations§
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