pub struct Service {
pub name: &'static str,
pub methods: &'static [&'static [Method]],
}Expand description
One #[web_rpc::service] trait.
Fields§
§name: &'static strThe trait’s identifier, as written.
methods: &'static [&'static [Method]]The trait’s methods, one slice per method in declaration order.
A method gated by a #[cfg(...)] that evaluates to false contributes an empty
slice. The method’s index on the wire is its position among the non-empty entries,
which is also its variant index in the request enum.
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnsafeUnpin for Service
impl UnwindSafe for Service
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