Struct grpcio_proto::testing::control::ScenarioResult [−][src]
pub struct ScenarioResult { pub scenario: SingularPtrField<Scenario>, pub latencies: SingularPtrField<HistogramData>, pub client_stats: RepeatedField<ClientStats>, pub server_stats: RepeatedField<ServerStats>, pub server_cores: Vec<i32>, pub summary: SingularPtrField<ScenarioResultSummary>, pub client_success: Vec<bool>, pub server_success: Vec<bool>, pub request_results: RepeatedField<RequestResultCount>, pub unknown_fields: UnknownFields, pub cached_size: CachedSize, }
Fields
scenario: SingularPtrField<Scenario>
latencies: SingularPtrField<HistogramData>
client_stats: RepeatedField<ClientStats>
server_stats: RepeatedField<ServerStats>
server_cores: Vec<i32>
summary: SingularPtrField<ScenarioResultSummary>
client_success: Vec<bool>
server_success: Vec<bool>
request_results: RepeatedField<RequestResultCount>
unknown_fields: UnknownFields
cached_size: CachedSize
Implementations
impl ScenarioResult
[src]
impl ScenarioResult
[src]pub fn new() -> ScenarioResult
[src]
pub fn get_scenario(&self) -> &Scenario
[src]
pub fn clear_scenario(&mut self)
[src]
pub fn has_scenario(&self) -> bool
[src]
pub fn set_scenario(&mut self, v: Scenario)
[src]
pub fn mut_scenario(&mut self) -> &mut Scenario
[src]
pub fn take_scenario(&mut self) -> Scenario
[src]
pub fn get_latencies(&self) -> &HistogramData
[src]
pub fn clear_latencies(&mut self)
[src]
pub fn has_latencies(&self) -> bool
[src]
pub fn set_latencies(&mut self, v: HistogramData)
[src]
pub fn mut_latencies(&mut self) -> &mut HistogramData
[src]
pub fn take_latencies(&mut self) -> HistogramData
[src]
pub fn get_client_stats(&self) -> &[ClientStats]
[src]
pub fn clear_client_stats(&mut self)
[src]
pub fn set_client_stats(&mut self, v: RepeatedField<ClientStats>)
[src]
pub fn mut_client_stats(&mut self) -> &mut RepeatedField<ClientStats>
[src]
pub fn take_client_stats(&mut self) -> RepeatedField<ClientStats>
[src]
pub fn get_server_stats(&self) -> &[ServerStats]
[src]
pub fn clear_server_stats(&mut self)
[src]
pub fn set_server_stats(&mut self, v: RepeatedField<ServerStats>)
[src]
pub fn mut_server_stats(&mut self) -> &mut RepeatedField<ServerStats>
[src]
pub fn take_server_stats(&mut self) -> RepeatedField<ServerStats>
[src]
pub fn get_server_cores(&self) -> &[i32]
[src]
pub fn clear_server_cores(&mut self)
[src]
pub fn set_server_cores(&mut self, v: Vec<i32>)
[src]
pub fn mut_server_cores(&mut self) -> &mut Vec<i32>
[src]
pub fn take_server_cores(&mut self) -> Vec<i32>
[src]
pub fn get_summary(&self) -> &ScenarioResultSummary
[src]
pub fn clear_summary(&mut self)
[src]
pub fn has_summary(&self) -> bool
[src]
pub fn set_summary(&mut self, v: ScenarioResultSummary)
[src]
pub fn mut_summary(&mut self) -> &mut ScenarioResultSummary
[src]
pub fn take_summary(&mut self) -> ScenarioResultSummary
[src]
pub fn get_client_success(&self) -> &[bool]
[src]
pub fn clear_client_success(&mut self)
[src]
pub fn set_client_success(&mut self, v: Vec<bool>)
[src]
pub fn mut_client_success(&mut self) -> &mut Vec<bool>
[src]
pub fn take_client_success(&mut self) -> Vec<bool>
[src]
pub fn get_server_success(&self) -> &[bool]
[src]
pub fn clear_server_success(&mut self)
[src]
pub fn set_server_success(&mut self, v: Vec<bool>)
[src]
pub fn mut_server_success(&mut self) -> &mut Vec<bool>
[src]
pub fn take_server_success(&mut self) -> Vec<bool>
[src]
pub fn get_request_results(&self) -> &[RequestResultCount]
[src]
pub fn clear_request_results(&mut self)
[src]
pub fn set_request_results(&mut self, v: RepeatedField<RequestResultCount>)
[src]
pub fn mut_request_results(&mut self) -> &mut RepeatedField<RequestResultCount>
[src]
pub fn take_request_results(&mut self) -> RepeatedField<RequestResultCount>
[src]
Trait Implementations
impl Clear for ScenarioResult
[src]
impl Clear for ScenarioResult
[src]impl Clone for ScenarioResult
[src]
impl Clone for ScenarioResult
[src]fn clone(&self) -> ScenarioResult
[src]
fn clone(&self) -> ScenarioResult
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ScenarioResult
[src]
impl Debug for ScenarioResult
[src]impl Default for ScenarioResult
[src]
impl Default for ScenarioResult
[src]fn default() -> ScenarioResult
[src]
fn default() -> ScenarioResult
[src]Returns the “default value” for a type. Read more
impl<'a> Default for &'a ScenarioResult
[src]
impl<'a> Default for &'a ScenarioResult
[src]fn default() -> &'a ScenarioResult
[src]
fn default() -> &'a ScenarioResult
[src]Returns the “default value” for a type. Read more
impl Message for ScenarioResult
[src]
impl Message for ScenarioResult
[src]fn is_initialized(&self) -> bool
[src]
fn is_initialized(&self) -> bool
[src]True iff all required fields are initialized.
Always returns true
for protobuf 3. Read more
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
[src]
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
[src]Update this message object with fields read from given stream.
fn compute_size(&self) -> u32
[src]
fn compute_size(&self) -> u32
[src]Compute and cache size of this message and all nested messages
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
[src]
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
[src]Write message to the stream. Read more
fn get_cached_size(&self) -> u32
[src]
fn get_cached_size(&self) -> u32
[src]Get size previously computed by compute_size
.
fn get_unknown_fields(&self) -> &UnknownFields
[src]
fn get_unknown_fields(&self) -> &UnknownFields
[src]Get a reference to unknown fields.
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]Get a mutable reference to unknown fields.
fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]View self as mutable Any
.
fn descriptor(&self) -> &'static MessageDescriptor
[src]
fn descriptor(&self) -> &'static MessageDescriptor
[src]Message descriptor for this message, used for reflection.
fn new() -> ScenarioResult
[src]
fn new() -> ScenarioResult
[src]Create an empty message object. Read more
fn descriptor_static() -> &'static MessageDescriptor
[src]
fn descriptor_static() -> &'static MessageDescriptor
[src]Get message descriptor for message type. Read more
fn default_instance() -> &'static ScenarioResult
[src]
fn default_instance() -> &'static ScenarioResult
[src]Return a pointer to default immutable message with static lifetime. Read more
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>
[src]
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>
[src]Parse message from stream.
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
[src]
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
[src]Write the message to the stream. Read more
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]Write the message to the stream prepending the message with message length encoded as varint. Read more
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
[src]
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
[src]Write the message to the vec, prepend the message with message length encoded as varint. Read more
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
[src]
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
[src]Update this message object with fields read from given stream.
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>
[src]
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>
[src]Parse message from reader. Parse stops on EOF or when error encountered. Read more
fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>
[src]
fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>
[src]Parse message from byte array.
fn parse_from_carllerche_bytes(bytes: &Bytes) -> Result<Self, ProtobufError>
[src]
fn parse_from_carllerche_bytes(bytes: &Bytes) -> Result<Self, ProtobufError>
[src]Parse message from Bytes
object.
Resulting message may share references to the passed bytes object. Read more
fn check_initialized(&self) -> Result<(), ProtobufError>
[src]
fn check_initialized(&self) -> Result<(), ProtobufError>
[src]Check if all required fields of this object are initialized.
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
[src]
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
[src]Write the message to the writer.
fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>
[src]
fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>
[src]Write the message to bytes vec.
fn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>
[src]
fn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>
[src]Write the message to bytes vec.
fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
[src]
fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
[src]Write the message to the writer, prepend the message with message length encoded as varint. Read more
fn write_length_delimited_to_bytes(
&self
) -> Result<Vec<u8, Global>, ProtobufError>
[src]
fn write_length_delimited_to_bytes(
&self
) -> Result<Vec<u8, Global>, ProtobufError>
[src]Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more
impl PartialEq<ScenarioResult> for ScenarioResult
[src]
impl PartialEq<ScenarioResult> for ScenarioResult
[src]fn eq(&self, other: &ScenarioResult) -> bool
[src]
fn eq(&self, other: &ScenarioResult) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ScenarioResult) -> bool
[src]
fn ne(&self, other: &ScenarioResult) -> bool
[src]This method tests for !=
.
impl ProtobufValue for ScenarioResult
[src]
impl ProtobufValue for ScenarioResult
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
fn as_ref(&self) -> ReflectValueRef<'_>
[src]As ref
fn is_non_zero(&self) -> bool
[src]
fn is_non_zero(&self) -> bool
[src]Is value non-zero?
fn as_ref_copy(&self) -> ReflectValueRef<'static>
[src]
fn as_ref_copy(&self) -> ReflectValueRef<'static>
[src]Return ProtobufValueRef
if self is Copy
. Read more
impl StructuralPartialEq for ScenarioResult
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScenarioResult
impl Send for ScenarioResult
impl Sync for ScenarioResult
impl Unpin for ScenarioResult
impl UnwindSafe for ScenarioResult
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more