pub enum FromMachine {
Challenge {
nonce: Vec<u8>,
key: Vec<u8>,
signature: Vec<u8>,
},
Reply {
sealed: Vec<u8>,
signature: Vec<u8>,
},
Refused {
reason: String,
},
}Expand description
From the machine, as the data of an output.
Variants§
Challenge
A fresh challenge, good for one command on this channel.
Fields
§
signature: Vec<u8>The machine’s signature of challenge_bytes.
Reply
The Outcome, sealed to the account.
Fields
§
signature: Vec<u8>The machine’s signature of reply_bytes: anyone can seal to
the account’s public keys, only the machine signs.
Refused
The command was refused before it ran: no challenge, a used one, one that expired, or one that did not open or was not signed by the account.
Trait Implementations§
Source§impl Clone for FromMachine
impl Clone for FromMachine
Source§impl Debug for FromMachine
impl Debug for FromMachine
Source§impl<'de> Deserialize<'de> for FromMachine
impl<'de> Deserialize<'de> for FromMachine
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FromMachine
Source§impl PartialEq for FromMachine
impl PartialEq for FromMachine
Source§impl Serialize for FromMachine
impl Serialize for FromMachine
impl StructuralPartialEq for FromMachine
Auto Trait Implementations§
impl Forget for FromMachine
impl Freeze for FromMachine
impl Move for FromMachine
impl RefUnwindSafe for FromMachine
impl Send for FromMachine
impl Sync for FromMachine
impl Unpin for FromMachine
impl UnsafeUnpin for FromMachine
impl UnwindSafe for FromMachine
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