pub struct Name {
pub data: String,
}
Fields§
§data: String
Implementations§
Source§impl Name
impl Name
pub fn new(data: &str) -> Result<Self, Error>
pub fn pack( &self, msg: Vec<u8>, compression: &mut Option<HashMap<String, usize>>, compression_off: usize, ) -> Result<Vec<u8>, Error>
pub fn unpack(&mut self, msg: &[u8], off: usize) -> Result<usize, Error>
pub fn unpack_compressed( &mut self, msg: &[u8], off: usize, allow_compression: bool, ) -> Result<usize, Error>
Trait Implementations§
impl Eq for Name
impl StructuralPartialEq for Name
Auto Trait Implementations§
impl Freeze for Name
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnwindSafe for Name
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