pub struct PendingResponder {
pub(crate) connector: Connector,
pub(crate) state: State,
pub(crate) handshake: HandshakeState,
}Expand description
Request received by the responder (the web page), held while it produces the response.
Fields§
§connector: Connector§state: State§handshake: HandshakeStateImplementations§
Source§impl PendingResponder
impl PendingResponder
Sourcepub fn read_request(
connector: Connector,
fragment: &str,
) -> Result<(Self, Vec<u8>), WebConnectorError>
pub fn read_request( connector: Connector, fragment: &str, ) -> Result<(Self, Vec<u8>), WebConnectorError>
Reads a request from the URL fragment of the connector page. Returns the pending request and the initiator’s request parameters.
Sourcepub fn encrypt_response(self, response: &[u8]) -> Result<Url, WebConnectorError>
pub fn encrypt_response(self, response: &[u8]) -> Result<Url, WebConnectorError>
Encrypts the response and returns the callback URL to navigate to. Fails if the initiator’s public key is not a valid P-256 point.
Auto Trait Implementations§
impl !RefUnwindSafe for PendingResponder
impl !UnwindSafe for PendingResponder
impl Freeze for PendingResponder
impl Send for PendingResponder
impl Sync for PendingResponder
impl Unpin for PendingResponder
impl UnsafeUnpin for PendingResponder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more