[][src]Trait dsf_core::base::Encode

pub trait Encode {
    type Error;
    fn encode(&self, buff: &mut [u8]) -> Result<usize, Self::Error>;
}

Encode trait for building encodable objects

Associated Types

type Error

Error type returned on parse error

Loading content...

Required methods

fn encode(&self, buff: &mut [u8]) -> Result<usize, Self::Error>

Encode method writes object data to the provided writer

Loading content...

Implementations on Foreign Types

impl Encode for String[src]

type Error = IoError

impl Encode for Vec<u8>[src]

type Error = IoError

impl Encode for SystemTime[src]

type Error = IoError

impl Encode for SocketAddrV4[src]

type Error = OptionsError

impl Encode for SocketAddrV6[src]

type Error = OptionsError

Loading content...

Implementors

impl Encode for Options[src]

type Error = OptionsError

impl Encode for Header[src]

type Error = IoError

impl Encode for Expiry[src]

type Error = OptionsError

impl Encode for Issued[src]

type Error = OptionsError

impl Encode for Kind[src]

type Error = OptionsError

impl Encode for Limit[src]

type Error = OptionsError

impl Encode for Metadata[src]

type Error = OptionsError

impl Encode for Name[src]

type Error = OptionsError

impl Encode for PeerId[src]

type Error = OptionsError

impl Encode for PrevSig[src]

type Error = OptionsError

impl Encode for PubKey[src]

type Error = OptionsError

Loading content...