Struct wrpc_transport::frame::Server
source · pub struct Server<C, I, O>(/* private fields */);
Expand description
wRPC server for framed transports
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<C, I, O> !Freeze for Server<C, I, O>
impl<C, I, O> !RefUnwindSafe for Server<C, I, O>
impl<C, I, O> Send for Server<C, I, O>
impl<C, I, O> Sync for Server<C, I, O>
impl<C, I, O> Unpin for Server<C, I, O>
impl<C, I, O> !UnwindSafe for Server<C, I, O>
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