pub type PresharedKeyBinder = PayloadU8;

Aliased Type§

struct PresharedKeyBinder(pub Vec<u8, Global>);

Fields§

§0: Vec<u8, Global>

Implementations§

§

impl PayloadU8

pub fn new(bytes: Vec<u8, Global>) -> PayloadU8

pub fn empty() -> PayloadU8

pub fn into_inner(self) -> Vec<u8, Global>

Trait Implementations§

§

impl Clone for PayloadU8

§

fn clone(&self) -> PayloadU8

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Codec for PayloadU8

§

fn encode(&self, bytes: &mut Vec<u8, Global>)

Function for encoding itself by appending itself to the provided vec of bytes.
§

fn read(r: &mut Reader<'_>) -> Option<PayloadU8>

Function for decoding itself from the provided reader will return Some if the decoding was successful or None if it was not.
§

fn get_encoding(&self) -> Vec<u8, Global>

Convenience function for encoding the implementation into a vec and returning it
§

fn read_bytes(bytes: &[u8]) -> Option<Self>

Function for wrapping a call to the read function in a Reader for the slice of bytes provided
§

impl Debug for PayloadU8

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<Okm<'_, PayloadU8Len>> for PayloadU8

§

fn from(okm: Okm<'_, PayloadU8Len>) -> PayloadU8

Converts to this type from the input type.
§

impl PartialEq<PayloadU8> for PayloadU8

§

fn eq(&self, other: &PayloadU8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for PayloadU8

§

impl StructuralEq for PayloadU8

§

impl StructuralPartialEq for PayloadU8