[−][src]Struct kerberos_ccache::CountedOctetString
Fields
data: Vec<u8>
The field data
of counted_octet_string
. To obtain the field length
just do data.len()
.
Implementations
impl CountedOctetString
[src]
pub fn new(data: Vec<u8>) -> Self
[src]
Creates new CountedOctetString from the data field.
pub fn build(self) -> Vec<u8>
[src]
Build the binary representation
pub fn parse(raw: &[u8]) -> IResult<&[u8], Self>
[src]
Creates a new instance from the binary representation
Error
Returns error when the binary has not the expected format.
Trait Implementations
impl Clone for CountedOctetString
[src]
fn clone(&self) -> CountedOctetString
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CountedOctetString
[src]
impl Default for CountedOctetString
[src]
fn default() -> CountedOctetString
[src]
impl<'_> From<&'_ str> for CountedOctetString
[src]
impl From<Vec<u8>> for CountedOctetString
[src]
impl PartialEq<CountedOctetString> for CountedOctetString
[src]
fn eq(&self, other: &CountedOctetString) -> bool
[src]
fn ne(&self, other: &CountedOctetString) -> bool
[src]
impl StructuralPartialEq for CountedOctetString
[src]
impl TryInto<String> for CountedOctetString
[src]
Auto Trait Implementations
impl RefUnwindSafe for CountedOctetString
impl Send for CountedOctetString
impl Sync for CountedOctetString
impl Unpin for CountedOctetString
impl UnwindSafe for CountedOctetString
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,