Credits

Type Alias Credits 

Source
pub type Credits = u64;
Expand description

Credits type

Trait Implementations§

Source§

impl Creditable for Credits

Source§

fn to_signed(&self) -> Result<SignedCredits, ProtocolError>

Convert unsigned credit to singed
Source§

fn to_unsigned(&self) -> Credits

Convert singed credit to unsigned
Source§

fn from_vec_bytes(vec: Vec<u8>) -> Result<Self, ProtocolError>

Decode bytes to credits
Source§

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

Encode credits to bytes