Struct async_nats::service::ServiceBuilder  
source · pub struct ServiceBuilder { /* private fields */ }Available on crate feature 
service only.Implementations§
source§impl ServiceBuilder
 
impl ServiceBuilder
sourcepub fn description<S: ToString>(self, description: S) -> Self
 
pub fn description<S: ToString>(self, description: S) -> Self
Description for the service.
sourcepub fn stats_handler<F>(self, handler: F) -> Selfwhere
    F: FnMut(String, Stats) -> String + Send + Sync + 'static,
 
pub fn stats_handler<F>(self, handler: F) -> Selfwhere F: FnMut(String, Stats) -> String + Send + Sync + 'static,
Handler for custom service statistics.
sourcepub fn queue_group<S: ToString>(self, queue_group: S) -> Self
 
pub fn queue_group<S: ToString>(self, queue_group: S) -> Self
Custom queue group. Default is q.
Auto Trait Implementations§
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