pub struct Controller(/* private fields */);Implementations§
Source§impl Controller
impl Controller
pub fn new(sk: SecretKey, pk: PublicKey, nonce: u64) -> Self
pub fn nonce(&self) -> u64
pub fn pubkey(&self) -> PublicKey
pub fn build_msg(&mut self, d: &[u8]) -> Result<Vec<u8>>
pub fn build_msg_with_nonce(&mut self, d: &[u8], nonce: u64) -> Result<Vec<u8>>
pub fn parse_msg(&mut self, input: &[u8]) -> Result<Vec<u8>>
pub fn parse_msg_with_nonce( &mut self, input: &[u8], nonce: u64, ) -> Result<Vec<u8>>
Auto Trait Implementations§
impl Freeze for Controller
impl RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl UnwindSafe for Controller
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more