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>,
}
Available on crate feature 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

source§

fn clone(&self) -> FileStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FileStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for FileStatus

source§

fn default() -> FileStatus

Returns the “default value” for a type. Read more
source§

impl PartialEq<FileStatus> for FileStatus

source§

fn eq(&self, other: &FileStatus) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl SEResource for FileStatus

source§

fn href(&self) -> Option<&str>

source§

impl Validate for FileStatus

source§

impl YaDeserialize for FileStatus

source§

fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>where Self: Sized,

source§

impl YaSerialize for FileStatus

source§

fn name() -> &'static strwhere Self: Sized,

source§

fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>where Self: Sized,

source§

fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>where Self: Sized,

source§

impl Eq for FileStatus

source§

impl StructuralEq for FileStatus

source§

impl StructuralPartialEq for FileStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> SEType for Twhere T: YaSerialize + YaDeserialize + Validate + RefUnwindSafe + Send + Sync + 'static,