Enum tfrecord::protobuf::WorkerShutdownMode
source · [−]#[repr(i32)]
pub enum WorkerShutdownMode {
Default,
NotConfigured,
WaitForCoordinator,
ShutdownAfterTimeout,
}
Expand description
Indicates the behavior of the worker when an internal error or shutdown signal is received.
Variants
Default
NotConfigured
WaitForCoordinator
ShutdownAfterTimeout
Implementations
Trait Implementations
sourceimpl Clone for WorkerShutdownMode
impl Clone for WorkerShutdownMode
sourcefn clone(&self) -> WorkerShutdownMode
fn clone(&self) -> WorkerShutdownMode
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 WorkerShutdownMode
impl Debug for WorkerShutdownMode
sourceimpl Default for WorkerShutdownMode
impl Default for WorkerShutdownMode
sourcefn default() -> WorkerShutdownMode
fn default() -> WorkerShutdownMode
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for WorkerShutdownMode
impl<'de> Deserialize<'de> for WorkerShutdownMode
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<WorkerShutdownMode> for i32
impl From<WorkerShutdownMode> for i32
sourcefn from(value: WorkerShutdownMode) -> i32
fn from(value: WorkerShutdownMode) -> i32
Converts to this type from the input type.
sourceimpl Hash for WorkerShutdownMode
impl Hash for WorkerShutdownMode
sourceimpl Ord for WorkerShutdownMode
impl Ord for WorkerShutdownMode
sourceimpl PartialOrd<WorkerShutdownMode> for WorkerShutdownMode
impl PartialOrd<WorkerShutdownMode> for WorkerShutdownMode
sourcefn partial_cmp(&self, other: &WorkerShutdownMode) -> Option<Ordering>
fn partial_cmp(&self, other: &WorkerShutdownMode) -> 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 WorkerShutdownMode
impl Serialize for WorkerShutdownMode
impl Copy for WorkerShutdownMode
impl Eq for WorkerShutdownMode
impl StructuralEq for WorkerShutdownMode
impl StructuralPartialEq for WorkerShutdownMode
Auto Trait Implementations
impl RefUnwindSafe for WorkerShutdownMode
impl Send for WorkerShutdownMode
impl Sync for WorkerShutdownMode
impl Unpin for WorkerShutdownMode
impl UnwindSafe for WorkerShutdownMode
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