[][src]Struct tensorflow_proto::tensorflow::ServerDef

pub struct ServerDef {
    pub cluster: Option<ClusterDef>,
    pub job_name: String,
    pub task_index: i32,
    pub default_session_config: Option<ConfigProto>,
    pub protocol: String,
}

Defines the configuration of a single TensorFlow server.

Fields

cluster: Option<ClusterDef>

The cluster of which this server is a member.

job_name: String

The name of the job of which this server is a member.

NOTE(mrry): The cluster field must contain a JobDef with a name field that matches this name.

task_index: i32

The task index of this server in its job.

NOTE: The cluster field must contain a JobDef with a matching name and a mapping in its tasks field for this index.

default_session_config: Option<ConfigProto>

The default configuration for sessions that run on this server.

protocol: String

The protocol to be used by this server.

Acceptable values include: "grpc", "grpc+verbs".

Trait Implementations

impl Clone for ServerDef[src]

impl Debug for ServerDef[src]

impl Default for ServerDef[src]

impl Message for ServerDef[src]

impl PartialEq<ServerDef> for ServerDef[src]

impl StructuralPartialEq for ServerDef[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.