pub struct Discovery {
pub port: u16,
pub token: Option<String>,
}Expand description
A parsed discovery line: everything a client needs to open an authenticated connection.
token is None for a line written by a server running with auth disabled
(ServiceConfig’s switch) or by a build predating the token — a client with
no token simply sends none and lets the server decide.
Fields§
§port: u16§token: Option<String>Trait Implementations§
impl Eq for Discovery
impl StructuralPartialEq for Discovery
Auto Trait Implementations§
impl Freeze for Discovery
impl RefUnwindSafe for Discovery
impl Send for Discovery
impl Sync for Discovery
impl Unpin for Discovery
impl UnsafeUnpin for Discovery
impl UnwindSafe for Discovery
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