Struct libp2p_blake_streams::SignedHead [−][src]
Fields
head: Head
sig: [u8; 64]
Implementations
Trait Implementations
type Archived = SignedHead
type Archived = SignedHead
The archived representation of this type. Read more
type Resolver = SignedHeadResolver
type Resolver = SignedHeadResolver
The resolver for this type. It must contain all the additional information from serializing needed to make the archived type from the normal type. Read more
pub unsafe fn resolve(
&self,
pos: usize,
resolver: <SignedHead as Archive>::Resolver,
out: *mut <SignedHead as Archive>::Archived
)
pub unsafe fn resolve(
&self,
pos: usize,
resolver: <SignedHead as Archive>::Resolver,
out: *mut <SignedHead as Archive>::Archived
)
Creates the archived version of this value at the given position and writes it to the given output. Read more
Returns the “default value” for a type. Read more
pub fn deserialize(
&self,
deserializer: &mut __D
) -> Result<SignedHead, <__D as Fallible>::Error>
pub fn deserialize(
&self,
deserializer: &mut __D
) -> Result<SignedHead, <__D as Fallible>::Error>
Deserializes using the given deserializer
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SignedHead
impl Send for SignedHead
impl Sync for SignedHead
impl Unpin for SignedHead
impl UnwindSafe for SignedHead
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.
type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
The archived counterpart of this type. Unlike Archive
, it may be unsized. Read more
type MetadataResolver = ()
type MetadataResolver = ()
The resolver for the metadata of this type. Read more
pub unsafe fn resolve_metadata(
&self,
usize,
<T as ArchiveUnsized>::MetadataResolver,
*mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
)
pub unsafe fn resolve_metadata(
&self,
usize,
<T as ArchiveUnsized>::MetadataResolver,
*mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
)
Creates the archived version of the metadata for this value at the given position and writes it to the given output. Read more
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
impl<T, S> SerializeUnsized<S> for T where
T: Serialize<S>,
S: Serializer + ?Sized,
impl<T, S> SerializeUnsized<S> for T where
T: Serialize<S>,
S: Serializer + ?Sized,
pub fn serialize_unsized(
&self,
serializer: &mut S
) -> Result<usize, <S as Fallible>::Error>
pub fn serialize_unsized(
&self,
serializer: &mut S
) -> Result<usize, <S as Fallible>::Error>
Writes the object and returns the position of the archived type.
pub fn serialize_metadata(&self, &mut S) -> Result<(), <S as Fallible>::Error>
pub fn serialize_metadata(&self, &mut S) -> Result<(), <S as Fallible>::Error>
Serializes the metadata for the given type.
pub fn vzip(self) -> V