Struct ipfs_embed::SignedHead [−]
Fields
head: Headsig: [u8; 64]Implementations
impl SignedHead
impl SignedHeadTrait 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 = SignedHeadThe archived representation of this type. Read more
type Resolver = SignedHeadResolver
type Resolver = SignedHeadResolverThe 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 SignedHeadpub 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 SignedHeadpub fn clone(&self) -> SignedHead
pub fn clone(&self) -> SignedHeadReturns a copy of the value. Read more
Performs copy-assignment from source. Read more
impl Debug for SignedHead
impl Debug for SignedHeadimpl Default for SignedHead
impl Default for SignedHeadpub fn default() -> SignedHead
pub fn default() -> SignedHeadReturns 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 SignedHeadpub fn only_derive_is_allowed_to_implement_this_trait() where
SignedHead: Sized, impl PartialEq<SignedHead> for SignedHead
impl PartialEq<SignedHead> for SignedHeadpub fn eq(&self, other: &SignedHead) -> bool
pub fn eq(&self, other: &SignedHead) -> boolThis 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) -> boolThis 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 SignedHeadimpl Eq for SignedHeadimpl StructuralEq for SignedHeadimpl StructuralPartialEq for SignedHeadAuto Trait Implementations
impl RefUnwindSafe for SignedHeadimpl Send for SignedHeadimpl Sync for SignedHeadimpl Unpin for SignedHeadimpl UnwindSafe for SignedHeadBlanket 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.
type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::ArchivedThe 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 = TShould 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