Struct ntp_proto::KeyExchangeClient
source · pub struct KeyExchangeClient { /* private fields */ }Implementations§
source§impl KeyExchangeClient
impl KeyExchangeClient
pub fn wants_read(&self) -> bool
pub fn read_socket(&mut self, rd: &mut dyn Read) -> Result<usize>
pub fn wants_write(&self) -> bool
pub fn write_socket(&mut self, wr: &mut dyn Write) -> Result<usize>
pub fn progress( self ) -> ControlFlow<Result<KeyExchangeResult, KeyExchangeError>, Self>
pub fn new( server_name: String, tls_config: ClientConfig ) -> Result<Self, KeyExchangeError>
Auto Trait Implementations§
impl !RefUnwindSafe for KeyExchangeClient
impl Send for KeyExchangeClient
impl Sync for KeyExchangeClient
impl Unpin for KeyExchangeClient
impl !UnwindSafe for KeyExchangeClient
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