pub struct ServiceBuilder { /* private fields */ }
Implementations§
Source§impl ServiceBuilder
impl ServiceBuilder
pub fn new( schema: impl Into<String>, name: impl Into<String>, uuid: ServiceUuid, version: u32, ) -> Self
pub fn function( self, id: u32, name: impl Into<String>, args: Option<LexicalId>, ok: Option<LexicalId>, err: Option<LexicalId>, ) -> Self
pub fn event( self, id: u32, name: impl Into<String>, event_type: Option<LexicalId>, ) -> Self
pub fn function_fallback(self, name: impl Into<String>) -> Self
pub fn event_fallback(self, name: impl Into<String>) -> Self
pub fn finish(self) -> Service
Trait Implementations§
Source§impl Clone for ServiceBuilder
impl Clone for ServiceBuilder
Source§fn clone(&self) -> ServiceBuilder
fn clone(&self) -> ServiceBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ServiceBuilder
impl RefUnwindSafe for ServiceBuilder
impl Send for ServiceBuilder
impl Sync for ServiceBuilder
impl Unpin for ServiceBuilder
impl UnwindSafe for ServiceBuilder
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