pub trait SubDescType: Sized + Sync + Send + Default {
    fn is_none(&self) -> bool;
    fn inner_raw_measure(
        &self,
        purpose: &Option<RawEncodePurpose>
    ) -> Result<usize, BuckyError>; fn inner_raw_encode<'a>(
        &self,
        buf: &'a mut [u8],
        purpose: &Option<RawEncodePurpose>
    ) -> Result<&'a mut [u8], BuckyError>; fn inner_raw_decode<'de>(
        buf: &'de [u8]
    ) -> Result<(Self, &'de [u8]), BuckyError>; fn is_some(&self) -> bool { ... } }
Expand description

子Desc类型系统

  • SubDescType: Sized + Sync + Send
  • OwnerObj: SubDescType+Clone
  • AreaObj: SubDescType+Clone
  • AuthorObj: SubDescType+Clone
  • PublicKeyObj: SubDescType+Clone

Required Methods

Provided Methods

Implementations on Foreign Types

Option

Option 用于OwnerObjectDesc或者AuthorObjectDesc

Option

Option 用于AreaObjectDesc

Implementors

PublicKey

用于SingleKeyObjectDesc

MNPublicKey

用于MNKeyObjectDesc、