[][src]Trait sentry_core::IntoDsn

pub trait IntoDsn {
    fn into_dsn(self) -> Result<Option<Dsn>, ParseDsnError>;
}

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>.

Loading content...

Implementations on Foreign Types

impl<I: IntoDsn> IntoDsn for Option<I>[src]

impl IntoDsn for ()[src]

impl<'a> IntoDsn for &'a str[src]

impl<'a> IntoDsn for Cow<'a, str>[src]

impl<'a> IntoDsn for &'a OsStr[src]

impl IntoDsn for OsString[src]

impl IntoDsn for String[src]

Loading content...

Implementors

impl IntoDsn for Dsn[src]

impl<'a> IntoDsn for &'a Dsn[src]

Loading content...