Struct thrift::protocol::TCompactOutputProtocol [−][src]
pub struct TCompactOutputProtocol<T> where
T: TWriteTransport, { /* fields omitted */ }
Expand description
Write messages using the Thrift compact protocol.
Examples
Create and use a TCompactOutputProtocol
.
use thrift::protocol::{TCompactOutputProtocol, TOutputProtocol};
use thrift::transport::TTcpChannel;
let mut channel = TTcpChannel::new();
channel.open("localhost:9090").unwrap();
let mut protocol = TCompactOutputProtocol::new(channel);
protocol.write_bool(true).unwrap();
protocol.write_string("test_string").unwrap();
Implementations
Create a TCompactOutputProtocol
that writes bytes to transport
.
Trait Implementations
Write the beginning of a Thrift message.
Write the end of a Thrift message.
Write the beginning of a Thrift struct.
Write the end of a Thrift struct.
Write the beginning of a Thrift field.
Write the end of a Thrift field.
Write a STOP field indicating that all the fields in a struct have been written. Read more
Write a bool.
Write a 64-bit float.
Write a fixed-length string.
Write the beginning of a list.
Write the end of a list.
Write the beginning of a set.
Write the end of a set.
Write the beginning of a map.
Write the end of a map.