sentry

Trait 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