Enum tfrecord::protobuf::WorkerHealth
source · [−]#[repr(i32)]
pub enum WorkerHealth {
Ok,
ReceivedShutdownSignal,
InternalError,
ShuttingDown,
}
Expand description
Current health status of a worker.
Variants
Ok
By default a worker is healthy.
ReceivedShutdownSignal
InternalError
ShuttingDown
Worker has been instructed to shutdown after a timeout.
Implementations
Trait Implementations
sourceimpl Clone for WorkerHealth
impl Clone for WorkerHealth
sourcefn clone(&self) -> WorkerHealth
fn clone(&self) -> WorkerHealth
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WorkerHealth
impl Debug for WorkerHealth
sourceimpl Default for WorkerHealth
impl Default for WorkerHealth
sourcefn default() -> WorkerHealth
fn default() -> WorkerHealth
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for WorkerHealth
impl<'de> Deserialize<'de> for WorkerHealth
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<WorkerHealth> for i32
impl From<WorkerHealth> for i32
sourcefn from(value: WorkerHealth) -> i32
fn from(value: WorkerHealth) -> i32
Converts to this type from the input type.
sourceimpl Hash for WorkerHealth
impl Hash for WorkerHealth
sourceimpl Ord for WorkerHealth
impl Ord for WorkerHealth
sourceimpl PartialEq<WorkerHealth> for WorkerHealth
impl PartialEq<WorkerHealth> for WorkerHealth
sourceimpl PartialOrd<WorkerHealth> for WorkerHealth
impl PartialOrd<WorkerHealth> for WorkerHealth
sourcefn partial_cmp(&self, other: &WorkerHealth) -> Option<Ordering>
fn partial_cmp(&self, other: &WorkerHealth) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for WorkerHealth
impl Serialize for WorkerHealth
impl Copy for WorkerHealth
impl Eq for WorkerHealth
impl StructuralEq for WorkerHealth
impl StructuralPartialEq for WorkerHealth
Auto Trait Implementations
impl RefUnwindSafe for WorkerHealth
impl Send for WorkerHealth
impl Sync for WorkerHealth
impl Unpin for WorkerHealth
impl UnwindSafe for WorkerHealth
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian()
.
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian()
.
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian()
.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more