pub enum DescContentType {
Typed,
Buffer,
}Expand description
§DescContent
Desc的用户自定义部分类型,默认是Typed 如果是Buffer类型,则desc_content部分的size+buffer,都由desc_content自己encode/decode
Variants§
Trait Implementations§
Source§impl PartialEq for DescContentType
impl PartialEq for DescContentType
impl Eq for DescContentType
impl StructuralPartialEq for DescContentType
Auto Trait Implementations§
impl Freeze for DescContentType
impl RefUnwindSafe for DescContentType
impl Send for DescContentType
impl Sync for DescContentType
impl Unpin for DescContentType
impl UnwindSafe for DescContentType
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> 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