pub struct Rpc<'a> {
pub ident: Cow<'a, str>,
pub request: Cow<'a, str>,
pub reply: Cow<'a, str>,
pub stream: RpcStream,
}Expand description
RPC definition inside a service.
Fields§
§ident: Cow<'a, str>§request: Cow<'a, str>§reply: Cow<'a, str>§stream: RpcStreamImplementations§
Trait Implementations§
Source§impl<'a> From<Rpc<'a>> for ServiceEntry<'a>
impl<'a> From<Rpc<'a>> for ServiceEntry<'a>
impl<'a> StructuralPartialEq for Rpc<'a>
Auto Trait Implementations§
impl<'a> Freeze for Rpc<'a>
impl<'a> RefUnwindSafe for Rpc<'a>
impl<'a> Send for Rpc<'a>
impl<'a> Sync for Rpc<'a>
impl<'a> Unpin for Rpc<'a>
impl<'a> UnwindSafe for Rpc<'a>
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