pub struct FirmwareUpdatePrepResponse {
pub auth: Vec<u8>,
}Expand description
FirmwareUpdatePrepResponse confirms that a new firmware update procedure started. A rejected request gets an error instead.
The Ark generates a fresh ephemeral encryption key to receive the firmware access key. Its public half is sealed to the cloud, bound to the requested version and hash.
Fields§
§auth: Vec<u8>Seal[Ark->Cloud][“firmware-v1”][version, sha256]
Trait Implementations§
Source§impl Clone for FirmwareUpdatePrepResponse
impl Clone for FirmwareUpdatePrepResponse
Source§impl Debug for FirmwareUpdatePrepResponse
impl Debug for FirmwareUpdatePrepResponse
Source§impl Default for FirmwareUpdatePrepResponse
impl Default for FirmwareUpdatePrepResponse
impl Eq for FirmwareUpdatePrepResponse
Source§impl From<FirmwareUpdatePrepResponse> for Message
impl From<FirmwareUpdatePrepResponse> for Message
Source§fn from(message: FirmwareUpdatePrepResponse) -> Self
fn from(message: FirmwareUpdatePrepResponse) -> Self
Wraps a concrete payload in its corresponding message variant.
Source§impl Hash for FirmwareUpdatePrepResponse
impl Hash for FirmwareUpdatePrepResponse
Source§impl Message for FirmwareUpdatePrepResponse
impl Message for FirmwareUpdatePrepResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for FirmwareUpdatePrepResponse
Auto Trait Implementations§
impl Freeze for FirmwareUpdatePrepResponse
impl RefUnwindSafe for FirmwareUpdatePrepResponse
impl Send for FirmwareUpdatePrepResponse
impl Sync for FirmwareUpdatePrepResponse
impl Unpin for FirmwareUpdatePrepResponse
impl UnsafeUnpin for FirmwareUpdatePrepResponse
impl UnwindSafe for FirmwareUpdatePrepResponse
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