pub struct UntrustedClient { /* private fields */ }Implementations§
Source§impl UntrustedClient
impl UntrustedClient
pub fn new(outcome: DiscoveryOutcome) -> Self
pub fn outcome(&self) -> &DiscoveryOutcome
pub fn trust_state(&self) -> DeviceTrustState
pub fn verify_trust(self) -> Result<TrustedClient, AlpineSdkError>
pub async fn connect_allow_untrusted( self, local_addr: SocketAddr, credentials: NodeCredentials, ) -> Result<ActiveSession, AlpineSdkError>
Trait Implementations§
Source§impl Clone for UntrustedClient
impl Clone for UntrustedClient
Source§fn clone(&self) -> UntrustedClient
fn clone(&self) -> UntrustedClient
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 UntrustedClient
impl RefUnwindSafe for UntrustedClient
impl Send for UntrustedClient
impl Sync for UntrustedClient
impl Unpin for UntrustedClient
impl UnsafeUnpin for UntrustedClient
impl UnwindSafe for UntrustedClient
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