pub struct ServiceDef {
pub name: String,
pub methods: Vec<MethodDef>,
}Expand description
An RPC service definition.
Fields§
§name: StringEffective service name (@service(name="...") or interface name).
methods: Vec<MethodDef>Methods.
Implementations§
Source§impl ServiceDef
impl ServiceDef
Sourcepub fn topic_names(&self) -> RpcResult<ServiceTopicNames>
pub fn topic_names(&self) -> RpcResult<ServiceTopicNames>
Returns the associated topic names (<svc>_Request / <svc>_Reply).
§Errors
Should not happen — lower_service already validates the name.
Propagated defensively nonetheless.
Trait Implementations§
Source§impl Clone for ServiceDef
impl Clone for ServiceDef
Source§fn clone(&self) -> ServiceDef
fn clone(&self) -> ServiceDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServiceDef
impl Debug for ServiceDef
Source§impl PartialEq for ServiceDef
impl PartialEq for ServiceDef
impl StructuralPartialEq for ServiceDef
Auto Trait Implementations§
impl Freeze for ServiceDef
impl RefUnwindSafe for ServiceDef
impl Send for ServiceDef
impl Sync for ServiceDef
impl Unpin for ServiceDef
impl UnsafeUnpin for ServiceDef
impl UnwindSafe for ServiceDef
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