@Namespace(value="c10d") public static enum torch.WorkResult extends Enum<torch.WorkResult>
Enum Constant and Description |
---|
COMM_ERROR |
SUCCESS |
TIMEOUT |
UNKNOWN |
Modifier and Type | Field and Description |
---|---|
byte |
value |
Modifier and Type | Method and Description |
---|---|
torch.WorkResult |
intern() |
String |
toString() |
static torch.WorkResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static torch.WorkResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final torch.WorkResult SUCCESS
public static final torch.WorkResult TIMEOUT
public static final torch.WorkResult COMM_ERROR
public static final torch.WorkResult UNKNOWN
public static torch.WorkResult[] values()
for (torch.WorkResult c : torch.WorkResult.values()) System.out.println(c);
public static torch.WorkResult valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic torch.WorkResult intern()
public String toString()
toString
in class Enum<torch.WorkResult>
Copyright © 2025. All rights reserved.