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: Record
Trait Implementations
impl Clone for PeerRecord
impl Clone for PeerRecord
pub fn clone(&self) -> PeerRecord
pub fn clone(&self) -> PeerRecord
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for PeerRecord
impl Debug for PeerRecord
impl PartialEq<PeerRecord> for PeerRecord
impl PartialEq<PeerRecord> for PeerRecord
pub fn eq(&self, other: &PeerRecord) -> bool
pub fn eq(&self, other: &PeerRecord) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for PeerRecord
impl StructuralEq for PeerRecord
impl StructuralPartialEq for PeerRecord
Auto Trait Implementations
impl RefUnwindSafe for PeerRecord
impl Send for PeerRecord
impl Sync for PeerRecord
impl Unpin for PeerRecord
impl UnwindSafe for PeerRecord
Blanket 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>::Metadata
Converts 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 = T
Should always be Self
pub fn vzip(self) -> V