Trait sentry::internals::IntoClient [−][src]
pub trait IntoClient: Sized { fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>); fn into_client(self) -> Option<Client> { ... } }
Helper trait to convert an object into a client config and/or client
for init
.
Required Methods
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
Converts the object into a client config tuple of DSN and options.
This can panic in cases where the conversion cannot be performed due to an error.
Provided Methods
fn into_client(self) -> Option<Client>
Converts the object into a client right away.
Implementations on Foreign Types
impl IntoClient for ()
[src]
impl IntoClient for ()
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
[src]
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
fn into_client(self) -> Option<Client>
[src]
fn into_client(self) -> Option<Client>
impl<C: IntoClient> IntoClient for Option<C>
[src]
impl<C: IntoClient> IntoClient for Option<C>
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
[src]
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
fn into_client(self) -> Option<Client>
[src]
fn into_client(self) -> Option<Client>
impl<'a> IntoClient for &'a str
[src]
impl<'a> IntoClient for &'a str
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
[src]
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
fn into_client(self) -> Option<Client>
[src]
fn into_client(self) -> Option<Client>
impl<'a> IntoClient for &'a OsStr
[src]
impl<'a> IntoClient for &'a OsStr
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
[src]
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
fn into_client(self) -> Option<Client>
[src]
fn into_client(self) -> Option<Client>
impl IntoClient for OsString
[src]
impl IntoClient for OsString
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
[src]
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
fn into_client(self) -> Option<Client>
[src]
fn into_client(self) -> Option<Client>
impl IntoClient for String
[src]
impl IntoClient for String
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
[src]
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
fn into_client(self) -> Option<Client>
[src]
fn into_client(self) -> Option<Client>
impl<C: IntoClient> IntoClient for (C, ClientOptions)
[src]
impl<C: IntoClient> IntoClient for (C, ClientOptions)
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
[src]
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
fn into_client(self) -> Option<Client>
[src]
fn into_client(self) -> Option<Client>