pub struct CreateWorkerSessionRequest {
pub session_handle: String,
pub server_def: Option<ServerDef>,
pub isolate_session_state: bool,
pub cluster_device_attributes: Vec<DeviceAttributes>,
}
Fields§
§session_handle: String
Sessions are identified by a given handle.
server_def: Option<ServerDef>
Defines the configuration of a TensorFlow worker.
isolate_session_state: bool
If true, any resources such as Variables used in the session will not be shared with other sessions.
cluster_device_attributes: Vec<DeviceAttributes>
The device attributes of all the devices in the cluster.
Trait Implementations§
Source§impl Clone for CreateWorkerSessionRequest
impl Clone for CreateWorkerSessionRequest
Source§fn clone(&self) -> CreateWorkerSessionRequest
fn clone(&self) -> CreateWorkerSessionRequest
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 CreateWorkerSessionRequest
impl Debug for CreateWorkerSessionRequest
Source§impl Default for CreateWorkerSessionRequest
impl Default for CreateWorkerSessionRequest
Source§impl Message for CreateWorkerSessionRequest
impl Message for CreateWorkerSessionRequest
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
.impl StructuralPartialEq for CreateWorkerSessionRequest
Auto Trait Implementations§
impl Freeze for CreateWorkerSessionRequest
impl RefUnwindSafe for CreateWorkerSessionRequest
impl Send for CreateWorkerSessionRequest
impl Sync for CreateWorkerSessionRequest
impl Unpin for CreateWorkerSessionRequest
impl UnwindSafe for CreateWorkerSessionRequest
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