[][src]Trait serenity::cache::FromStrAndCache

pub trait FromStrAndCache: Sized {
    type Err;
    fn from_str(
        cache: impl AsRef<CacheRwLock>,
        s: &str
    ) -> Result<Self, Self::Err>; }

Associated Types

type Err

Loading content...

Required methods

fn from_str(cache: impl AsRef<CacheRwLock>, s: &str) -> Result<Self, Self::Err>

Loading content...

Implementors

impl FromStrAndCache for Channel[src]

type Err = ChannelParseError

impl FromStrAndCache for Role[src]

type Err = RoleParseError

impl<F: FromStr> FromStrAndCache for F[src]

type Err = F::Err

Loading content...