pub struct Method {
pub name: &'static str,
pub args: &'static [Arg],
pub ret: Return,
}Expand description
One method of a service trait.
Fields§
§name: &'static strThe method’s wire name, in camelCase.
args: &'static [Arg]The method’s arguments, in declaration order.
ret: ReturnWhat the method sends back.
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnsafeUnpin for Method
impl UnwindSafe for Method
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