Enum glean_core::upload::UploadResult[][src]

pub enum UploadResult {
    RecoverableFailure,
    UnrecoverableFailure,
    HttpStatus(u32),
}
Expand description

The result of an attempted ping upload.

Variants

RecoverableFailure

A recoverable failure.

During upload something went wrong, e.g. the network connection failed. The upload should be retried at a later time.

UnrecoverableFailure

An unrecoverable upload failure.

A possible cause might be a malformed URL.

HttpStatus(u32)

A HTTP response code.

This can still indicate an error, depending on the status code.

Tuple Fields of HttpStatus

0: u32

Implementations

Gets the label to be used in recording error counts for upload.

Returns None if the upload finished succesfully. Failures are recorded in the ping_upload_failure metric.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.