Struct ipfs_embed::SignedHead [−]
Fields
head: Head
sig: [u8; 64]
Implementations
impl SignedHead
impl SignedHead
Trait Implementations
impl Archive for SignedHead where
Head: Archive,
[u8; 64]: Archive,
impl Archive for SignedHead where
Head: Archive,
[u8; 64]: Archive,
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
impl AsBytes for SignedHead
impl AsBytes for SignedHead
pub fn only_derive_is_allowed_to_implement_this_trait() where
SignedHead: Sized,
fn as_bytes_mut(&mut self) -> &mut [u8] where
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] where
Self: FromBytes,
Get the bytes of this value mutably. Read more
impl Clone for SignedHead
impl Clone for SignedHead
pub fn clone(&self) -> SignedHead
pub fn clone(&self) -> SignedHead
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for SignedHead
impl Debug for SignedHead
impl Default for SignedHead
impl Default for SignedHead
pub fn default() -> SignedHead
pub fn default() -> SignedHead
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
impl FromBytes for SignedHead
impl FromBytes for SignedHead
pub fn only_derive_is_allowed_to_implement_this_trait() where
SignedHead: Sized,
impl PartialEq<SignedHead> for SignedHead
impl PartialEq<SignedHead> for SignedHead
pub fn eq(&self, other: &SignedHead) -> bool
pub fn eq(&self, other: &SignedHead) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &SignedHead) -> bool
pub fn ne(&self, other: &SignedHead) -> bool
This method tests for !=
.
pub fn serialize(
&self,
serializer: &mut __S
) -> Result<<SignedHead as Archive>::Resolver, <__S as Fallible>::Error>
pub fn serialize(
&self,
serializer: &mut __S
) -> Result<<SignedHead as Archive>::Resolver, <__S as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived type. Read more
impl Copy for SignedHead
impl Eq for SignedHead
impl StructuralEq for SignedHead
impl StructuralPartialEq for SignedHead
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