pub struct TupUniAttribute { /* private fields */ }Implementations§
Source§impl TupUniAttribute
impl TupUniAttribute
pub fn new(version: ProtocolVersion) -> Self
pub fn from_bytes<'a>( buf: &'a Bytes, version: ProtocolVersion, ) -> Result<Self, DecodeErr>
pub fn to_bytes(&self) -> Result<Bytes, EncodeErr>
pub fn read<T>(
&self,
name: &String,
is_require: bool,
default_value: T,
) -> Result<T, DecodeErr>where
T: DecodeTars + ClassName,
pub fn write<T>(&mut self, name: &String, value: &T) -> Result<(), EncodeErr>where
T: EncodeTars + ClassName,
Trait Implementations§
Source§impl Clone for TupUniAttribute
impl Clone for TupUniAttribute
Source§fn clone(&self) -> TupUniAttribute
fn clone(&self) -> TupUniAttribute
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 TupUniAttribute
impl Debug for TupUniAttribute
Source§impl Ord for TupUniAttribute
impl Ord for TupUniAttribute
Source§fn cmp(&self, other: &TupUniAttribute) -> Ordering
fn cmp(&self, other: &TupUniAttribute) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TupUniAttribute
impl PartialEq for TupUniAttribute
Source§impl PartialOrd for TupUniAttribute
impl PartialOrd for TupUniAttribute
impl Eq for TupUniAttribute
impl StructuralPartialEq for TupUniAttribute
Auto Trait Implementations§
impl Freeze for TupUniAttribute
impl RefUnwindSafe for TupUniAttribute
impl Send for TupUniAttribute
impl Sync for TupUniAttribute
impl Unpin for TupUniAttribute
impl UnwindSafe for TupUniAttribute
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