Struct ipfs_embed::PeerRecord [−]
Expand description
A record either received by the given peer or retrieved from the local record store.
Fields
peer: Option<PeerId>The peer from whom the record was received. None if the record was
retrieved from local storage.
record: RecordTrait Implementations
impl Clone for PeerRecord
impl Clone for PeerRecordpub fn clone(&self) -> PeerRecord
pub fn clone(&self) -> PeerRecordReturns a copy of the value. Read more
Performs copy-assignment from source. Read more
impl Debug for PeerRecord
impl Debug for PeerRecordimpl PartialEq<PeerRecord> for PeerRecord
impl PartialEq<PeerRecord> for PeerRecordpub fn eq(&self, other: &PeerRecord) -> bool
pub fn eq(&self, other: &PeerRecord) -> boolThis method tests for self and other values to be equal, and is used
by ==. Read more
pub fn ne(&self, other: &PeerRecord) -> bool
pub fn ne(&self, other: &PeerRecord) -> boolThis method tests for !=.
impl Eq for PeerRecordimpl StructuralEq for PeerRecordimpl StructuralPartialEq for PeerRecordAuto Trait Implementations
impl RefUnwindSafe for PeerRecordimpl Send for PeerRecordimpl Sync for PeerRecordimpl Unpin for PeerRecordimpl UnwindSafe for PeerRecordBlanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::MetadataConverts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>Deserializes using the given deserializer
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V