pub struct BackendTarget {
pub version: u32,
pub host: String,
pub port: u16,
pub username: String,
pub device: String,
pub saved_at: String,
}Expand description
One stored backend: the address the client dials and the account it signs in as.
Ranges the writer is responsible for: host is an address or name of
1..=255 bytes, port is 1..=65535, username and device are 1..=64 JS
string length units. saved_at is the client’s own stamp (ISO-8601,
millisecond, Z) and is informational.
Fields§
§version: u32BACKEND_TARGET_VERSION; a newer client may write a higher one.
host: StringThe daemon’s address (a tailnet IP, a loopback IP, or a name).
port: u16The daemon’s TCP port.
username: StringThe account username the client signs in with.
device: StringThe client’s own name for itself, sent as login’s device label.
saved_at: StringWhen the client wrote the record.
Implementations§
Trait Implementations§
Source§impl Clone for BackendTarget
impl Clone for BackendTarget
Source§impl Debug for BackendTarget
impl Debug for BackendTarget
Source§impl<'de> Deserialize<'de> for BackendTarget
impl<'de> Deserialize<'de> for BackendTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BackendTarget
Source§impl PartialEq for BackendTarget
impl PartialEq for BackendTarget
Source§impl Serialize for BackendTarget
impl Serialize for BackendTarget
impl StructuralPartialEq for BackendTarget
Auto Trait Implementations§
impl Forget for BackendTarget
impl Freeze for BackendTarget
impl Move for BackendTarget
impl RefUnwindSafe for BackendTarget
impl Send for BackendTargetwhere
RawVecInner: Send,
impl Sync for BackendTargetwhere
RawVecInner: Sync,
impl Unpin for BackendTarget
impl UnsafeUnpin for BackendTarget
impl UnwindSafe for BackendTargetwhere
RawVecInner: UnwindSafe,
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