Struct krpc::schema::Response
[−]
[src]
pub struct Response { pub time: f64, pub has_error: bool, pub error: String, pub has_return_value: bool, pub return_value: Vec<u8>, // some fields omitted }
Fields
time: f64
has_error: bool
error: String
has_return_value: bool
return_value: Vec<u8>
Methods
impl Response
[src]
fn new() -> Response
fn default_instance() -> &'static Response
fn clear_time(&mut self)
fn set_time(&mut self, v: f64)
fn get_time(&self) -> f64
fn clear_has_error(&mut self)
fn set_has_error(&mut self, v: bool)
fn get_has_error(&self) -> bool
fn clear_error(&mut self)
fn set_error(&mut self, v: String)
fn mut_error(&mut self) -> &mut String
fn take_error(&mut self) -> String
fn get_error(&self) -> &str
fn clear_has_return_value(&mut self)
fn set_has_return_value(&mut self, v: bool)
fn get_has_return_value(&self) -> bool
fn clear_return_value(&mut self)
fn set_return_value(&mut self, v: Vec<u8>)
fn mut_return_value(&mut self) -> &mut Vec<u8>
fn take_return_value(&mut self) -> Vec<u8>
fn get_return_value(&self) -> &[u8]
Trait Implementations
impl PartialEq for Response
[src]
fn eq(&self, __arg_0: &Response) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Response) -> bool
This method tests for !=
.
impl Clone for Response
[src]
fn clone(&self) -> Response
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for Response
[src]
impl Sync for Response
[src]
impl Message for Response
[src]
fn is_initialized(&self) -> bool
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
fn compute_size(&self) -> u32
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
fn get_unknown_fields(&self) -> &UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn as_any(&self) -> &Any
fn as_any_mut(&mut self) -> &mut Any
fn into_any(self: Box<Self>) -> Box<Any>
fn descriptor(&self) -> &'static MessageDescriptor
fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
fn check_initialized(&self) -> Result<(), ProtobufError>
fn write_to_writer(&self, w: &mut Write) -> Result<(), ProtobufError>
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn write_length_delimited_to_writer(
&self,
w: &mut Write
) -> Result<(), ProtobufError>
&self,
w: &mut Write
) -> Result<(), ProtobufError>