[][src]Trait rust_consul::ConsulType

pub trait ConsulType {
    type Reply;
    fn parse(buf: &Chunk) -> Result<Self::Reply, ParseError>;
}

Trait for parsing types out of consul

Associated Types

type Reply

The kind of replies this parser yields

Loading content...

Required methods

fn parse(buf: &Chunk) -> Result<Self::Reply, ParseError>

Parse an http body and give back a result

Loading content...

Implementors

impl ConsulType for Agent[src]

type Reply = Agent

impl ConsulType for ServiceNodes[src]

type Reply = Vec<Node>

impl ConsulType for Services[src]

Loading content...