Trait sentry::IntoDsn

source ·
pub trait IntoDsn {
    // Required method
    fn into_dsn(self) -> Result<Option<Dsn>, ParseDsnError>;
}
Expand description

Helper trait to convert a string into an Option<Dsn>.

This converts a value into a DSN by parsing. The empty string or null values result in no DSN being parsed.

Required Methods§

source

fn into_dsn(self) -> Result<Option<Dsn>, ParseDsnError>

Converts the value into a Result<Option<Dsn>, E>.

Implementations on Foreign Types§

source§

impl IntoDsn for ()

source§

impl IntoDsn for String

source§

impl IntoDsn for OsString

source§

impl<'a> IntoDsn for &'a str

source§

impl<'a> IntoDsn for &'a OsStr

source§

impl<'a> IntoDsn for Cow<'a, str>

source§

impl<I> IntoDsn for Option<I>
where I: IntoDsn,

Implementors§

source§

impl IntoDsn for Dsn

source§

impl<'a> IntoDsn for &'a Dsn