Struct wrpc_transport::frame::Server
source · pub struct Server<C, I, O, H = ()> { /* private fields */ }
Expand description
wRPC server for framed transports
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<C, I, O, H = ()> !Freeze for Server<C, I, O, H>
impl<C, I, O, H = ()> !RefUnwindSafe for Server<C, I, O, H>
impl<C, I, O, H> Send for Server<C, I, O, H>
impl<C, I, O, H> Sync for Server<C, I, O, H>
impl<C, I, O, H> Unpin for Server<C, I, O, H>where
H: Unpin,
impl<C, I, O, H = ()> !UnwindSafe for Server<C, I, O, H>
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> ServeExt for Twhere
T: Serve,
impl<T> ServeExt for Twhere
T: Serve,
source§fn serve_values<Params, Results>(
&self,
instance: &str,
func: &str,
paths: impl Into<Arc<[Box<[Option<usize>]>]>> + Send,
) -> impl Future<Output = Result<impl Stream<Item = Result<(Self::Context, Params, Option<impl Future<Output = Result<()>> + Send + Unpin + 'static>, impl FnOnce(Results) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'static>> + Send + 'static)>> + Send + 'static>> + Send
fn serve_values<Params, Results>( &self, instance: &str, func: &str, paths: impl Into<Arc<[Box<[Option<usize>]>]>> + Send, ) -> impl Future<Output = Result<impl Stream<Item = Result<(Self::Context, Params, Option<impl Future<Output = Result<()>> + Send + Unpin + 'static>, impl FnOnce(Results) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'static>> + Send + 'static)>> + Send + 'static>> + Send
Serve function
func
from instance instance
using typed Params
and Results