pub struct EmailSvc<G> { /* private fields */ }
Trait Implementations§
Source§impl<G: Global> EmailService for EmailSvc<G>
impl<G: Global> EmailService for EmailSvc<G>
Source§impl<G: Global> Service<G> for EmailSvc<G>
impl<G: Global> Service<G> for EmailSvc<G>
Source§async fn run(self, global: Arc<G>, ctx: Context) -> Result<()>
async fn run(self, global: Arc<G>, ctx: Context) -> Result<()>
Run the service.
This function should return a future that is pending as long as the
service is running. When the service finishes without any errors,
the future should resolve to
Ok(())
. As a best practice, the
service should stop as soon as the provided context is done. Read moreAuto Trait Implementations§
impl<G> Freeze for EmailSvc<G>
impl<G> RefUnwindSafe for EmailSvc<G>where
G: RefUnwindSafe,
impl<G> Send for EmailSvc<G>where
G: Send,
impl<G> Sync for EmailSvc<G>where
G: Sync,
impl<G> Unpin for EmailSvc<G>where
G: Unpin,
impl<G> UnwindSafe for EmailSvc<G>where
G: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request