pub struct DivoomServerErrorInfo {
    pub http_status_code: u16,
    pub error_code: i32,
    pub error_message: String,
}
Expand description

This represents the error that returned from Divoom online service or Divoom devices.

Fields

http_status_code: u16

HTTP status code returned from Divoom service or device.

error_code: i32

Internal error code returned from Divoom service or device. Usually 0 means success and non-zero means failures.

error_message: String

Internal error message returned from Divoom service or device. Empty when error code is 0 and maybe not empty when error code is not 0.

Implementations

Create error info from error http status code.

Create error info from Divoom internal error code without message.

Create error info from Divoom internal error code with error message.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more