pub enum RedirectCallback {
Forwardable(u16),
Unreachable,
}Expand description
The loopback callback an external login URL will redirect to, read from a
redirect_uri/redirect_url query parameter.
Variants§
Forwardable(u16)
A forwardable localhost port. The login completes once that port is forwarded, so the shell holds the browser open until then.
Unreachable
A loopback the tunnel cannot dial (a non-.0.0.1 127/8 address, ::1, or
an IPv4-mapped loopback). The provider’s redirect would hit the user’s own
machine rather than the sandbox, so the login cannot complete.
Auto Trait Implementations§
impl Freeze for RedirectCallback
impl RefUnwindSafe for RedirectCallback
impl Send for RedirectCallback
impl Sync for RedirectCallback
impl Unpin for RedirectCallback
impl UnsafeUnpin for RedirectCallback
impl UnwindSafe for RedirectCallback
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request