pub fn try_push(&mut self, octet: u8) -> Result<(), Error> {
        if self.label_len >= (MAX_LABEL_LEN as u8) {
            Err(Error::LabelTooLong)
        } else if self.wire_repr.try_push(octet).is_ok() {
            self.label_len += 1;
            Ok(())
        } else {
            Err(Error::NameTooLong)
        }
    }
/// Tries to add the given octet to the current label. This will
/// fail if doing so would make the label or name too long. In the
/// error case, the `NameBuilder`'s state remains unchanged.
Tries to add the given octet to the current label. This will
fail if doing so would make the label or name too long. In the
error case, the `NameBuilder`'s state remains unchanged.
Tries to add the given octet to the current label . This will fail if doing so would make the label or name too long . In the error case the ` NameBuilder ` ' s state remains unchanged .
pub fn try_push(&mut self, octet: u8) -> Result<(), Error> {
        if self.label_len >= (MAX_LABEL_LEN as u8) {
            Err(Error::LabelTooLong)
        } else if self.wire_repr.try_push(octet).is_ok() {
            self.label_len += 1;
            Ok(())
        } else {
            Err(Error::NameTooLong)
        }
    }
pub fn try_push ( & mut self , octet : u8 ) -> Result < ( ) , Error > { if self . label_len >= ( MAX_LABEL_LEN as u8 ) { Err ( Error :: LabelTooLong ) } else if self . wire_repr . try_push ( octet ) . is_ok ( ) { self . label_len += 1 ; Ok ( ( ) ) } else { Err ( Error :: NameTooLong ) } }
Tries to add the given octet to the current label.
Tries to add the given octet to the current label .
&mut self
octet
u8
&mut self
octet
u8