pub struct LoopbackRedirect { /* private fields */ }Implementations§
Source§impl LoopbackRedirect
impl LoopbackRedirect
Sourcepub async fn bind() -> Result<Self>
pub async fn bind() -> Result<Self>
Bind an ephemeral port.
Ephemeral by default so two Origin applications authorizing at the same time cannot collide.
Sourcepub async fn bind_port(port: u16) -> Result<Self>
pub async fn bind_port(port: u16) -> Result<Self>
Bind a fixed port, for providers that require the redirect URI to be registered in advance and reject a dynamic port.
pub fn with_timeout(self, timeout: Duration) -> Self
Trait Implementations§
Source§impl Debug for LoopbackRedirect
impl Debug for LoopbackRedirect
Source§impl RedirectListener for LoopbackRedirect
impl RedirectListener for LoopbackRedirect
Source§fn redirect_uri(&self) -> String
fn redirect_uri(&self) -> String
The
redirect_uri to send to the authorization endpoint.Auto Trait Implementations§
impl !Freeze for LoopbackRedirect
impl RefUnwindSafe for LoopbackRedirect
impl Send for LoopbackRedirect
impl Sync for LoopbackRedirect
impl Unpin for LoopbackRedirect
impl UnsafeUnpin for LoopbackRedirect
impl UnwindSafe for LoopbackRedirect
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