Struct thrift::protocol::TCompactInputProtocol [−][src]
pub struct TCompactInputProtocol<T> where
T: TReadTransport, { /* fields omitted */ }
Expand description
Read messages encoded in the Thrift compact protocol.
Examples
Create and use a TCompactInputProtocol
.
use thrift::protocol::{TCompactInputProtocol, TInputProtocol};
use thrift::transport::TTcpChannel;
let mut channel = TTcpChannel::new();
channel.open("localhost:9090").unwrap();
let mut protocol = TCompactInputProtocol::new(channel);
let recvd_bool = protocol.read_bool().unwrap();
let recvd_string = protocol.read_string().unwrap();
Implementations
Create a TCompactInputProtocol
that reads bytes from transport
.
Trait Implementations
Read the beginning of a Thrift message.
Read the end of a Thrift message.
Read the beginning of a Thrift struct.
Read the end of a Thrift struct.
Read the beginning of a Thrift struct field.
Read the end of a Thrift struct field.
Read a fixed-length byte array.
Read a 64-bit float.
Read a fixed-length string (not null terminated).
Read the beginning of a list.
Read the end of a list.
Read the beginning of a set.
Read the end of a set.
Read the beginning of a map.
Read the end of a map.
Skip a field with type field_type
recursively until the default
maximum skip depth is reached. Read more