Struct sep2_common::packages::software_download::FileStatus
source · pub struct FileStatus {
pub activate_time: Option<TimeType>,
pub file_link: Option<FileLink>,
pub load_percent: Uint8,
pub next_request_attempt: TimeType,
pub request_503_count: Uint16,
pub request_fail_count: Uint16,
pub status: FileStatusType,
pub status_time: TimeType,
pub poll_rate: Option<Uint32>,
pub href: Option<String>,
}
software_download
only.Fields§
§activate_time: Option<TimeType>
Date/time at which this File, referred to by FileLink, will be activated. Omission of or presence and value of this element MUST exactly match omission or presence and value of the activateTime element from the File resource.
file_link: Option<FileLink>
§load_percent: Uint8
This element MUST be set to the percentage of the file, indicated by FileLink, that was loaded during the latest load attempt. This value MUST be reset to 0 each time a load attempt is started for the File indicated by FileLink. This value MUST be increased when an LD receives HTTP response containing file content. This value MUST be set to 100 when the full content of the file has been received by the LD
next_request_attempt: TimeType
This element MUST be set to the time at which the LD will issue its next GET request for file content from the File indicated by FileLink
request_503_count: Uint16
This value MUST be reset to 0 when FileLink is first pointed at a new File. This value MUST be incremented each time an LD receives a 503 error from the FS.
request_fail_count: Uint16
This value MUST be reset to 0 when FileLink is first pointed at a new File. This value MUST be incremented each time a GET request for file content failed. 503 errors MUST be excluded from this counter.
status: FileStatusType
Current loading status of the file indicated by FileLink. This element MUST be set to one of the following values: 0 - No load operation in progress 1 - File load in progress (first request for file content has been issued by LD) 2 - File load failed 3 - File loaded successfully (full content of file has been received by the LD), signature verification in progress 4 - File signature verification failed 5 - File signature verified, waiting to activate file. 6 - File activation failed 7 - File activation in progress 8 - File activated successfully (this state may not be reached/persisted through an image activation) 9-255 - Reserved for future use.
status_time: TimeType
This element MUST be set to the time at which file status transitioned to the value indicated in the status element.
poll_rate: Option<Uint32>
The default polling rate for this function set (this resource and all resources below), in seconds. If not specified, a default of 900 seconds (15 minutes) is used. It is RECOMMENDED a client poll the resources of this function set every pollRate seconds.
href: Option<String>
A reference to the resource address (URI). Required in a response to a GET, ignored otherwise.
Trait Implementations§
source§impl Clone for FileStatus
impl Clone for FileStatus
source§fn clone(&self) -> FileStatus
fn clone(&self) -> FileStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FileStatus
impl Debug for FileStatus
source§impl Default for FileStatus
impl Default for FileStatus
source§fn default() -> FileStatus
fn default() -> FileStatus
source§impl PartialEq<FileStatus> for FileStatus
impl PartialEq<FileStatus> for FileStatus
source§fn eq(&self, other: &FileStatus) -> bool
fn eq(&self, other: &FileStatus) -> bool
self
and other
values to be equal, and is used
by ==
.