relay_log::sentry

Trait IntoDsn

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§

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

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

Implementations on Foreign Types§

§

impl IntoDsn for ()

§

impl IntoDsn for String

§

impl IntoDsn for OsString

§

impl<'a> IntoDsn for &'a str

§

impl<'a> IntoDsn for &'a OsStr

§

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

§

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

Implementors§

§

impl IntoDsn for Dsn

§

impl<'a> IntoDsn for &'a Dsn