Trait ts3::Decode[][src]

pub trait Decode<T> {
    type Err: Debug;
    fn decode(buf: &[u8]) -> Result<T, Self::Err>;
}
Expand description

A type implementing Decode allows to be read from the TS stream

Associated Types

Loading content...

Required methods

fn decode(buf: &[u8]) -> Result<T, Self::Err>[src]

Loading content...

Implementations on Foreign Types

impl<T> Decode<Vec<T, Global>> for Vec<T> where
    T: Decode<T>, 
[src]

type Err = T::Err

fn decode(buf: &[u8]) -> Result<Vec<T>, Self::Err>[src]

impl Decode<()> for ()[src]

type Err = ()

fn decode(_: &[u8]) -> Result<(), ()>[src]

impl Decode<String> for String[src]

type Err = FromUtf8Error

fn decode(buf: &[u8]) -> Result<String, Self::Err>[src]

impl Decode<bool> for bool[src]

type Err = Error

fn decode(buf: &[u8]) -> Result<bool, Self::Err>[src]

impl Decode<isize> for isize[src]

type Err = ParseIntError

fn decode(buf: &[u8]) -> Result<isize, Self::Err>[src]

impl Decode<i8> for i8[src]

type Err = ParseIntError

fn decode(buf: &[u8]) -> Result<i8, Self::Err>[src]

impl Decode<i16> for i16[src]

type Err = ParseIntError

fn decode(buf: &[u8]) -> Result<i16, Self::Err>[src]

impl Decode<i32> for i32[src]

type Err = ParseIntError

fn decode(buf: &[u8]) -> Result<i32, Self::Err>[src]

impl Decode<i64> for i64[src]

type Err = ParseIntError

fn decode(buf: &[u8]) -> Result<i64, Self::Err>[src]

impl Decode<i128> for i128[src]

type Err = ParseIntError

fn decode(buf: &[u8]) -> Result<i128, Self::Err>[src]

impl Decode<usize> for usize[src]

type Err = ParseIntError

fn decode(buf: &[u8]) -> Result<usize, Self::Err>[src]

impl Decode<u8> for u8[src]

type Err = ParseIntError

fn decode(buf: &[u8]) -> Result<u8, Self::Err>[src]

impl Decode<u16> for u16[src]

type Err = ParseIntError

fn decode(buf: &[u8]) -> Result<u16, Self::Err>[src]

impl Decode<u32> for u32[src]

type Err = ParseIntError

fn decode(buf: &[u8]) -> Result<u32, Self::Err>[src]

impl Decode<u64> for u64[src]

type Err = ParseIntError

fn decode(buf: &[u8]) -> Result<u64, Self::Err>[src]

impl Decode<u128> for u128[src]

type Err = ParseIntError

fn decode(buf: &[u8]) -> Result<u128, Self::Err>[src]

Loading content...

Implementors

impl Decode<APIKeyScope> for APIKeyScope[src]

impl Decode<Error> for Error[src]

impl Decode<ReasonID> for ReasonID[src]

type Err = <u8 as Decode<u8>>::Err

fn decode(buf: &[u8]) -> Result<ReasonID, Self::Err>[src]

impl Decode<APIKey> for APIKey[src]

impl Decode<RawResp> for RawResp[src]

type Err = ()

fn decode(buf: &[u8]) -> Result<Self, Self::Err>[src]

impl Decode<Version> for Version[src]

impl Decode<ChannelCreated> for ChannelCreated[src]

impl Decode<ChannelDeleted> for ChannelDeleted[src]

impl Decode<ChannelDescriptionChanged> for ChannelDescriptionChanged[src]

impl Decode<ChannelEdited> for ChannelEdited[src]

impl Decode<ChannelMoved> for ChannelMoved[src]

impl Decode<ChannelPasswordChanged> for ChannelPasswordChanged[src]

impl Decode<ClientEnterView> for ClientEnterView[src]

impl Decode<ClientLeftView> for ClientLeftView[src]

impl Decode<ClientMoved> for ClientMoved[src]

impl Decode<ServerEdited> for ServerEdited[src]

impl Decode<TextMessage> for TextMessage[src]

impl Decode<TokenUsed> for TokenUsed[src]

Loading content...