pub struct Response {
pub time: f64,
pub has_error: bool,
pub error: String,
pub has_return_value: bool,
pub return_value: Vec<u8>,
/* private fields */
}Fields§
§time: f64§has_error: bool§error: String§has_return_value: bool§return_value: Vec<u8>Implementations§
Source§impl Response
impl Response
pub fn new() -> Response
pub fn default_instance() -> &'static Response
pub fn clear_time(&mut self)
pub fn set_time(&mut self, v: f64)
pub fn get_time(&self) -> f64
pub fn clear_has_error(&mut self)
pub fn set_has_error(&mut self, v: bool)
pub fn get_has_error(&self) -> bool
pub fn clear_error(&mut self)
pub fn set_error(&mut self, v: String)
pub fn mut_error(&mut self) -> &mut String
pub fn take_error(&mut self) -> String
pub fn get_error(&self) -> &str
pub fn clear_has_return_value(&mut self)
pub fn set_has_return_value(&mut self, v: bool)
pub fn get_has_return_value(&self) -> bool
pub fn clear_return_value(&mut self)
pub fn set_return_value(&mut self, v: Vec<u8>)
pub fn mut_return_value(&mut self) -> &mut Vec<u8> ⓘ
pub fn take_return_value(&mut self) -> Vec<u8> ⓘ
pub fn get_return_value(&self) -> &[u8] ⓘ
Trait Implementations§
Source§impl Message for Response
impl Message for Response
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<()>
fn get_cached_size(&self) -> u32
fn get_unknown_fields(&self) -> &UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn into_any(self: Box<Self>) -> Box<dyn 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>
fn write_length_delimited_to_vec( &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 dyn 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 dyn Write, ) -> Result<(), ProtobufError>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn type_id(&self) -> TypeId
Source§impl MessageStatic for Response
impl MessageStatic for Response
fn new() -> Response
fn descriptor_static(_: Option<Response>) -> &'static MessageDescriptor
Source§impl ProtobufValue for Response
impl ProtobufValue for Response
fn as_ref(&self) -> ProtobufValueRef<'_>
fn as_any(&self) -> &(dyn Any + 'static)
fn is_non_zero(&self) -> bool
fn as_ref_copy(&self) -> ProtobufValueRef<'static>
impl StructuralPartialEq for Response
impl Sync for Response
Auto Trait Implementations§
impl !Freeze for Response
impl !RefUnwindSafe for Response
impl Send for Response
impl Unpin for Response
impl UnwindSafe for Response
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more