pub struct ImageTransferConfig {
pub logical_name: ObisCode,
pub image_block_size: u32,
pub image_transferred_blocks_status: Vec<u8>,
pub image_first_not_transferred_block_number: u32,
pub image_transfer_enabled: bool,
pub image_transfer_status: u8,
pub image_to_activate_info: Vec<ImageToActivateInfo>,
}Expand description
Configuration structure used to build an ImageTransfer object.
Fields§
§logical_name: ObisCodeAttribute 1: the object’s logical name (OBIS code).
image_block_size: u32Attribute 2: image block size in octets.
image_transferred_blocks_status: Vec<u8>Attribute 3: per-block transfer status, as a bit-string (1 = transferred).
image_first_not_transferred_block_number: u32Attribute 4: number of the first block not yet transferred.
image_transfer_enabled: boolAttribute 5: whether the image transfer process is enabled.
image_transfer_status: u8Attribute 6: image transfer status (see transfer_status).
image_to_activate_info: Vec<ImageToActivateInfo>Attribute 7: array of image_to_activate_info structures.
Trait Implementations§
Source§impl Clone for ImageTransferConfig
impl Clone for ImageTransferConfig
Source§fn clone(&self) -> ImageTransferConfig
fn clone(&self) -> ImageTransferConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageTransferConfig
impl Debug for ImageTransferConfig
Source§impl<'de> Deserialize<'de> for ImageTransferConfig
impl<'de> Deserialize<'de> for ImageTransferConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ImageTransferConfig
impl RefUnwindSafe for ImageTransferConfig
impl Send for ImageTransferConfig
impl Sync for ImageTransferConfig
impl Unpin for ImageTransferConfig
impl UnsafeUnpin for ImageTransferConfig
impl UnwindSafe for ImageTransferConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more