Struct aspenlib::ServeAspenRpc
source · pub struct ServeAspenRpc<S> { /* private fields */ }
Expand description
A serving function to use with tarpc::server::InFlightRequest::execute.
Trait Implementations§
source§impl<S: Clone> Clone for ServeAspenRpc<S>
impl<S: Clone> Clone for ServeAspenRpc<S>
source§fn clone(&self) -> ServeAspenRpc<S>
fn clone(&self) -> ServeAspenRpc<S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<S> Serve<AspenRpcRequest> for ServeAspenRpc<S>where
S: AspenRpc,
impl<S> Serve<AspenRpcRequest> for ServeAspenRpc<S>where
S: AspenRpc,
§type Resp = AspenRpcResponse
type Resp = AspenRpcResponse
Type of response.
§type Fut = AspenRpcResponseFut<S>
type Fut = AspenRpcResponseFut<S>
Type of response future.
Auto Trait Implementations§
impl<S> RefUnwindSafe for ServeAspenRpc<S>where
S: RefUnwindSafe,
impl<S> Send for ServeAspenRpc<S>where
S: Send,
impl<S> Sync for ServeAspenRpc<S>where
S: Sync,
impl<S> Unpin for ServeAspenRpc<S>where
S: Unpin,
impl<S> UnwindSafe for ServeAspenRpc<S>where
S: UnwindSafe,
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