trevrpc/status
How a call ends: a code, whose values are gRPC’s, a message, trailing metadata and details.
Types
A status code. Ok is a call that succeeded, which a client sees as
the end of the responses rather than as an error, except where a send
finds the call already over.
pub type Code {
Ok
Cancelled
Unknown
InvalidArgument
DeadlineExceeded
NotFound
AlreadyExists
PermissionDenied
ResourceExhausted
FailedPrecondition
Aborted
OutOfRange
Unimplemented
Internal
Unavailable
DataLoss
Unauthenticated
}
Constructors
-
Ok -
Cancelled -
Unknown -
InvalidArgument -
DeadlineExceeded -
NotFound -
AlreadyExists -
PermissionDenied -
ResourceExhausted -
FailedPrecondition -
Aborted -
OutOfRange -
Unimplemented -
Internal -
Unavailable -
DataLoss -
Unauthenticated
A detail of a status: a protobuf Any, its type URL and its message.
pub type Detail {
Detail(type_url: String, value: BitArray)
}
Constructors
-
Detail(type_url: String, value: BitArray)