pub struct RunGraphResponse {
pub recv: Vec<NamedTensorProto>,
pub step_stats: Option<StepStats>,
pub cost_graph: Option<CostGraphDef>,
pub partition_graph: Vec<GraphDef>,
pub status_code: i32,
pub status_error_message: String,
}
Fields§
§recv: Vec<NamedTensorProto>
A list of tensors corresponding to those requested by
RunGraphRequest.recv_key
.
step_stats: Option<StepStats>
If the request asked for execution stats, the cost graph, or the partition graphs, these are returned here. TODO(suharshs): Package these in a RunMetadata instead.
cost_graph: Option<CostGraphDef>
§partition_graph: Vec<GraphDef>
§status_code: i32
If store_errors_in_response_body is true in the request, then optionally the server may return an OK status for the RPC and fill the true status into the fields below, to allow for messages that are too long to fit in metadata.
status_error_message: String
Implementations§
Source§impl RunGraphResponse
impl RunGraphResponse
Sourcepub fn status_code(&self) -> Code
pub fn status_code(&self) -> Code
Returns the enum value of status_code
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status_code(&mut self, value: Code)
pub fn set_status_code(&mut self, value: Code)
Sets status_code
to the provided enum value.
Trait Implementations§
Source§impl Clone for RunGraphResponse
impl Clone for RunGraphResponse
Source§fn clone(&self) -> RunGraphResponse
fn clone(&self) -> RunGraphResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RunGraphResponse
impl Debug for RunGraphResponse
Source§impl Default for RunGraphResponse
impl Default for RunGraphResponse
Source§impl Message for RunGraphResponse
impl Message for RunGraphResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for RunGraphResponse
impl PartialEq for RunGraphResponse
impl StructuralPartialEq for RunGraphResponse
Auto Trait Implementations§
impl Freeze for RunGraphResponse
impl RefUnwindSafe for RunGraphResponse
impl Send for RunGraphResponse
impl Sync for RunGraphResponse
impl Unpin for RunGraphResponse
impl UnwindSafe for RunGraphResponse
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