[][src]Trait samotop_core::service::mail::NamedService

pub trait NamedService: Send + Sync {
    fn name(&self) -> &str;
}

The service which implements this trait has a name.

/// This mail service has a very special names
#[derive(Clone, Debug)]
struct MyNameMail;

impl NamedService for MyNameMail {
    fn name(&self) -> &str {
        "my.name.example.com"
    }
}

Required methods

fn name(&self) -> &str

Loading content...

Implementations on Foreign Types

impl<'_> NamedService for &'_ str[src]

impl NamedService for String[src]

Loading content...

Implementors

impl NamedService for DefaultMailService[src]

impl<NS, ES, GS, QS> NamedService for CompositeMailService<NS, ES, GS, QS> where
    NS: NamedService,
    ES: EsmtpService,
    GS: MailGuard,
    QS: MailQueue
[src]

impl<T> NamedService for Arc<T> where
    T: NamedService
[src]

Loading content...