pub enum AgentResponse {
Status {
sets: Vec<SetInfo>,
},
AutoShares(Vec<String>),
FinalShare(String),
UnknownSet,
Unenrolled,
BadPassphrase,
Error(String),
}Expand description
A response sent from the salus-agent back to the client.
Variants§
Status
The enrolled sets (empty when nothing is enrolled).
A set’s automatically retrievable shares.
A set’s single, freshly unsealed final share.
UnknownSet
The requested set name is not enrolled.
Unenrolled
No sets are enrolled at all.
BadPassphrase
The supplied passphrase did not unseal the final share.
Error(String)
A general error occurred while servicing the request.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for AgentResponse
impl<'__de, __Context> BorrowDecode<'__de, __Context> for AgentResponse
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given [
BorrowDecode]. Read moreSource§impl Clone for AgentResponse
impl Clone for AgentResponse
Source§fn clone(&self) -> AgentResponse
fn clone(&self) -> AgentResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentResponse
impl Debug for AgentResponse
Source§impl<__Context> Decode<__Context> for AgentResponse
impl<__Context> Decode<__Context> for AgentResponse
Auto Trait Implementations§
impl Freeze for AgentResponse
impl RefUnwindSafe for AgentResponse
impl Send for AgentResponse
impl Sync for AgentResponse
impl Unpin for AgentResponse
impl UnsafeUnpin for AgentResponse
impl UnwindSafe for AgentResponse
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