pub struct SubDescNone();
Expand description
§5 种 SubDescType
- SubDescNone 表示不实现某个ObjectDesc
- Option
用于OwnerObjectDesc或者AuthorObjectDesc - Option 用于AreaObjectDesc
- PublicKey 用于SingleKeyObjectDesc
- MNPublicKey 用于MNKeyObjectDesc SubDescNone === 表示不实现某个 XXXObjectDesc
Trait Implementations§
Source§impl AreaObj for SubDescNone
impl AreaObj for SubDescNone
type Inner = SubDescNone
fn from_type_less(value: Option<Area>) -> BuckyResult<Self>
fn area_ref(&self) -> &Option<Area>
fn from_inner(inner: Self::Inner) -> Self
Source§impl AreaObjectDesc for SubDescNone
impl AreaObjectDesc for SubDescNone
Source§impl AuthorObj for SubDescNone
impl AuthorObj for SubDescNone
type Inner = SubDescNone
fn from_type_less(value: Option<ObjectId>) -> BuckyResult<Self>
fn from_inner(inner: Self::Inner) -> Self
Source§impl AuthorObjectDesc for SubDescNone
impl AuthorObjectDesc for SubDescNone
Source§impl Clone for SubDescNone
impl Clone for SubDescNone
Source§fn clone(&self) -> SubDescNone
fn clone(&self) -> SubDescNone
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SubDescNone
impl Debug for SubDescNone
Source§impl Default for SubDescNone
impl Default for SubDescNone
Source§impl OwnerObj for SubDescNone
impl OwnerObj for SubDescNone
type Inner = SubDescNone
fn from_type_less(value: Option<ObjectId>) -> BuckyResult<Self>
fn from_inner(inner: Self::Inner) -> Self
Source§impl OwnerObjectDesc for SubDescNone
impl OwnerObjectDesc for SubDescNone
Source§impl PublicKeyObj for SubDescNone
impl PublicKeyObj for SubDescNone
fn from_type_less( single: Option<PublicKey>, mn: Option<MNPublicKey>, ) -> BuckyResult<Self>
fn has_single_key(&self) -> bool
fn has_mn_key(&self) -> bool
Source§impl PublicKeyObjectDesc for SubDescNone
impl PublicKeyObjectDesc for SubDescNone
fn public_key_ref(&self) -> Option<PublicKeyRef<'_>>
Source§impl SubDescType for SubDescNone
impl SubDescType for SubDescNone
fn is_support() -> bool
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
Auto Trait Implementations§
impl Freeze for SubDescNone
impl RefUnwindSafe for SubDescNone
impl Send for SubDescNone
impl Sync for SubDescNone
impl Unpin for SubDescNone
impl UnwindSafe for SubDescNone
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more