pub struct AwaitingResponse { /* private fields */ }Expand description
An intermediate initiator state.
Implementations§
Source§impl AwaitingResponse
impl AwaitingResponse
Sourcepub fn recv(self, rsp_msg: ResponseMessage) -> Result<Key, Error>
pub fn recv(self, rsp_msg: ResponseMessage) -> Result<Key, Error>
Receive the ResponseMessage from the responder and (hopefully) obtain
a shared Key.
Note that this function consumes self to ensure that at most one
response is processed.
Auto Trait Implementations§
impl Freeze for AwaitingResponse
impl RefUnwindSafe for AwaitingResponse
impl Send for AwaitingResponse
impl Sync for AwaitingResponse
impl Unpin for AwaitingResponse
impl UnwindSafe for AwaitingResponse
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