pub type Credits = u64;Expand description
Credits type
Trait Implementations§
Source§impl Creditable for Credits
impl Creditable for Credits
Source§fn to_signed(&self) -> Result<SignedCredits, ProtocolError>
fn to_signed(&self) -> Result<SignedCredits, ProtocolError>
Convert unsigned credit to singed
Source§fn to_unsigned(&self) -> Credits
fn to_unsigned(&self) -> Credits
Convert singed credit to unsigned
Source§fn from_vec_bytes(vec: Vec<u8>) -> Result<Self, ProtocolError>
fn from_vec_bytes(vec: Vec<u8>) -> Result<Self, ProtocolError>
Decode bytes to credits