pub struct PeerStorageRetrieval {
pub data: Vec<u8>,
}Expand description
A peer_storage_retrieval message that can be sent to or received from a peer.
This message is sent to peers for whom we store backup data. If we receive this message, it indicates that the peer had stored our backup data. This data can be used for fund recovery in case of data loss.
peer_storage_retrieval is used to send the most recent backup of the peer.
Fields§
§data: Vec<u8>Most recent peer’s data included in the msg.
Trait Implementations§
Source§impl Clone for PeerStorageRetrieval
impl Clone for PeerStorageRetrieval
Source§fn clone(&self) -> PeerStorageRetrieval
fn clone(&self) -> PeerStorageRetrieval
Returns a duplicate of the value. Read more
1.0.0 · 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 PeerStorageRetrieval
impl Debug for PeerStorageRetrieval
Source§impl Hash for PeerStorageRetrieval
impl Hash for PeerStorageRetrieval
Source§impl LengthReadable for PeerStorageRetrieval
impl LengthReadable for PeerStorageRetrieval
Source§fn read_from_fixed_length_buffer<R: LengthLimitedRead>(
r: &mut R,
) -> Result<Self, DecodeError>
fn read_from_fixed_length_buffer<R: LengthLimitedRead>( r: &mut R, ) -> Result<Self, DecodeError>
Reads a
Self in from the given LengthLimitedRead.Source§impl PartialEq for PeerStorageRetrieval
impl PartialEq for PeerStorageRetrieval
Source§impl Writeable for PeerStorageRetrieval
impl Writeable for PeerStorageRetrieval
impl Eq for PeerStorageRetrieval
impl StructuralPartialEq for PeerStorageRetrieval
Auto Trait Implementations§
impl Freeze for PeerStorageRetrieval
impl RefUnwindSafe for PeerStorageRetrieval
impl Send for PeerStorageRetrieval
impl Sync for PeerStorageRetrieval
impl Unpin for PeerStorageRetrieval
impl UnwindSafe for PeerStorageRetrieval
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