pub struct OpenCode {
pub code: String,
pub redeemed: Receiver<()>,
}Expand description
An open code on its way to a browser, and the signal that it arrived.
Fields§
§code: String§redeemed: Receiver<()>Receives once when the code is redeemed. Dropped unanswered when the code expired or the door went away.
Auto Trait Implementations§
impl !Sync for OpenCode
impl Freeze for OpenCode
impl RefUnwindSafe for OpenCode
impl Send for OpenCode
impl Unpin for OpenCode
impl UnsafeUnpin for OpenCode
impl UnwindSafe for OpenCode
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