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) -> Self
pub fn stats_handler<F>(self, handler: F) -> Self
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 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