pub enum Config {
Ticket(String),
TicketSender(Sender<String>),
}Expand description
Config used to create a new NetcodeInterface.
The user was either given a ticket, or is generating a new ticket.
Variants§
Ticket(String)
A ticket string obtained from the other player.
TicketSender(Sender<String>)
Holds a oneshot sender that will send a newly generated ticket.
Auto Trait Implementations§
impl Freeze for Config
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
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