pub struct PairedServer {
pub endpoint_id: String,
pub server_id: String,
pub name: String,
pub addrs: Vec<SocketAddr>,
pub relays: Vec<String>,
}Expand description
A server the paired identity signs in to, as the phone has it saved: enough for the device to pin and reach it. The phone vouches for it as the invite that brought it there did; the device dials the key and nothing else, and Iroh proves it.
Fields§
§endpoint_id: StringIts EndpointId, 64 hex digits.
server_id: StringThe server id pinned with the key.
name: String§addrs: Vec<SocketAddr>Where it may be reached, at most MAX_ADDRS: hints. As text,
as ServerAddresses sends them.
relays: Vec<String>Its relays’ URLs, at most MAX_RELAYS: hints.
Implementations§
Source§impl PairedServer
impl PairedServer
Sourcepub fn within_bounds(self) -> Option<Self>
pub fn within_bounds(self) -> Option<Self>
This server held to what a device keeps of one: None if its key
is not one; its name cut, and its hints to their limits, a relay
that is not a relay’s URL left out.
Trait Implementations§
Source§impl Clone for PairedServer
impl Clone for PairedServer
Source§impl Debug for PairedServer
impl Debug for PairedServer
Source§impl<'de> Deserialize<'de> for PairedServer
impl<'de> Deserialize<'de> for PairedServer
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 PairedServer
Source§impl PartialEq for PairedServer
impl PartialEq for PairedServer
Source§impl Serialize for PairedServer
impl Serialize for PairedServer
impl StructuralPartialEq for PairedServer
Auto Trait Implementations§
impl Freeze for PairedServer
impl RefUnwindSafe for PairedServer
impl Send for PairedServer
impl Sync for PairedServer
impl Unpin for PairedServer
impl UnsafeUnpin for PairedServer
impl UnwindSafe for PairedServer
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