[−][src]Trait ttv_chat::irc::FromIrcMessage
A trait to convert an IrcMessage
into Self
.
Associated Types
type Error
An error returned if this message could not be parsed.
Required methods
fn from_irc(msg: IrcMessage<'a>) -> Result<Self, Self::Error>
This method consumes an IrcMessage
and tries to produce an instance of Self
fn into_inner(self) -> MaybeOwned<'a>
Consumes self returning the raw MaybeOwned<'a>
Implementors
impl<'a> FromIrcMessage<'a> for Commands<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<Commands<'a>, <Commands<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<Commands<'a>, <Commands<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes this wrapper and returns the raw MaybeOwned<'a>
impl<'a> FromIrcMessage<'a> for Cap<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<Cap<'a>, <Cap<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<Cap<'a>, <Cap<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for ClearChat<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<ClearChat<'a>, <ClearChat<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<ClearChat<'a>, <ClearChat<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for ClearMsg<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<ClearMsg<'a>, <ClearMsg<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<ClearMsg<'a>, <ClearMsg<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for GlobalUserState<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<GlobalUserState<'a>, <GlobalUserState<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<GlobalUserState<'a>, <GlobalUserState<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for HostTarget<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<HostTarget<'a>, <HostTarget<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<HostTarget<'a>, <HostTarget<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for IrcReady<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<IrcReady<'a>, <IrcReady<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<IrcReady<'a>, <IrcReady<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for Join<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<Join<'a>, <Join<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<Join<'a>, <Join<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for Notice<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<Notice<'a>, <Notice<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<Notice<'a>, <Notice<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for Part<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<Part<'a>, <Part<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<Part<'a>, <Part<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for Ping<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<Ping<'a>, <Ping<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<Ping<'a>, <Ping<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for Pong<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<Pong<'a>, <Pong<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<Pong<'a>, <Pong<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for Privmsg<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<Privmsg<'a>, <Privmsg<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<Privmsg<'a>, <Privmsg<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for Ready<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<Ready<'a>, <Ready<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<Ready<'a>, <Ready<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for Reconnect<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<Reconnect<'a>, <Reconnect<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<Reconnect<'a>, <Reconnect<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for RoomState<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<RoomState<'a>, <RoomState<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<RoomState<'a>, <RoomState<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for UserNotice<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<UserNotice<'a>, <UserNotice<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<UserNotice<'a>, <UserNotice<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for UserState<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<UserState<'a>, <UserState<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<UserState<'a>, <UserState<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for Whisper<'a>
[src]
type Error = MessageError
fn from_irc(
msg: IrcMessage<'a>
) -> Result<Whisper<'a>, <Whisper<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<Whisper<'a>, <Whisper<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>
impl<'a> FromIrcMessage<'a> for IrcMessage<'a>
[src]
type Error = Infallible
fn from_irc(
msg: IrcMessage<'a>
) -> Result<IrcMessage<'a>, <IrcMessage<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<IrcMessage<'a>, <IrcMessage<'a> as FromIrcMessage<'a>>::Error>
fn into_inner(self) -> MaybeOwned<'a>
[src]
Consumes the message, returning the raw MaybeOwned<'_>