pub struct ServiceBuilder<'a> { /* private fields */ }Expand description
Builder for registering methods on a service.
Implementations§
Source§impl ServiceBuilder<'_>
impl ServiceBuilder<'_>
Sourcepub fn add_method(
&mut self,
name: &'static str,
doc: impl Into<String>,
args: Vec<ArgInfo>,
request_shape: &'static Shape,
response_shape: &'static Shape,
) -> MethodId
pub fn add_method( &mut self, name: &'static str, doc: impl Into<String>, args: Vec<ArgInfo>, request_shape: &'static Shape, response_shape: &'static Shape, ) -> MethodId
Add a unary method to the service.
Auto Trait Implementations§
impl<'a> Freeze for ServiceBuilder<'a>
impl<'a> RefUnwindSafe for ServiceBuilder<'a>
impl<'a> Send for ServiceBuilder<'a>
impl<'a> Sync for ServiceBuilder<'a>
impl<'a> Unpin for ServiceBuilder<'a>
impl<'a> !UnwindSafe for ServiceBuilder<'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