pub struct DiscoveryOutcome {
pub reply: DiscoveryReply,
pub peer: SocketAddr,
pub client_nonce: Vec<u8>,
pub local_addr: SocketAddr,
pub device_identity_pubkey: Option<Vec<u8>>,
pub device_identity_trusted: bool,
pub device_identity_attestation_error: Option<String>,
pub interface: Option<String>,
pub run_id: String,
}Expand description
The outcome of a discovery request.
Fields§
§reply: DiscoveryReply§peer: SocketAddr§client_nonce: Vec<u8>§local_addr: SocketAddr§device_identity_pubkey: Option<Vec<u8>>§device_identity_trusted: bool§device_identity_attestation_error: Option<String>§interface: Option<String>§run_id: StringImplementations§
Source§impl DiscoveryOutcome
impl DiscoveryOutcome
pub fn trust_state(&self) -> DeviceTrustState
pub fn require_trusted(self) -> Result<TrustedDiscoveryOutcome, AlpineSdkError>
pub fn trust_decision(&self) -> TrustDecision
pub fn protocol_report(&self) -> ProtocolNegotiationReport
pub fn require_capabilities( &self, required: &CapabilitySet, ) -> Result<(), AlpineSdkError>
Trait Implementations§
Source§impl Clone for DiscoveryOutcome
impl Clone for DiscoveryOutcome
Source§fn clone(&self) -> DiscoveryOutcome
fn clone(&self) -> DiscoveryOutcome
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 moreAuto Trait Implementations§
impl Freeze for DiscoveryOutcome
impl RefUnwindSafe for DiscoveryOutcome
impl Send for DiscoveryOutcome
impl Sync for DiscoveryOutcome
impl Unpin for DiscoveryOutcome
impl UnsafeUnpin for DiscoveryOutcome
impl UnwindSafe for DiscoveryOutcome
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