Type Alias PresharedKeyBinder

Source
pub type PresharedKeyBinder = PayloadU8;

Aliased Type§

struct PresharedKeyBinder(pub Vec<u8>);

Fields§

§0: Vec<u8>

Implementations

Source§

impl PayloadU8

Source

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

Source

pub fn empty() -> PayloadU8

Source

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

Trait Implementations

Source§

impl Clone for PayloadU8

Source§

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
Source§

impl Codec for PayloadU8

Source§

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

Encode yourself by appending onto bytes.
Source§

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

Decode yourself by fiddling with the Reader. Return Some if it worked, None if not.
Source§

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

Convenience function to get the results of encode().
Source§

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

Read one of these from the front of bytes and return it.
Source§

impl Debug for PayloadU8

Source§

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

Formats the value using the given formatter. Read more
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl PartialEq for PayloadU8

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

impl StructuralPartialEq for PayloadU8