pub struct RemoteHints {
pub server_id: String,
pub endpoint_id: String,
pub addrs: Vec<String>,
pub relays: Vec<String>,
pub online: bool,
}Expand description
Where a paired server is, as its pair keeps it (RemoteHints): what a
device dials it at. The home server’s own record of the item’s server,
from the pairing.
Fields§
§server_id: StringThe item’s server’s crate::ServerId.
endpoint_id: StringThe item’s server’s endpoint id, hex: the key the device pins for the dial.
addrs: Vec<String>ip:port addresses the item’s server was paired at.
relays: Vec<String>Relay URLs the item’s server named.
online: boolWhether the home server holds a connection to the item’s server
now. Offline, a grant is
refused at once (OriginOffline).
Trait Implementations§
Source§impl Clone for RemoteHints
impl Clone for RemoteHints
Source§impl Debug for RemoteHints
impl Debug for RemoteHints
Source§impl<'de> Deserialize<'de> for RemoteHints
impl<'de> Deserialize<'de> for RemoteHints
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 RemoteHints
Source§impl PartialEq for RemoteHints
impl PartialEq for RemoteHints
Source§impl Serialize for RemoteHints
impl Serialize for RemoteHints
impl StructuralPartialEq for RemoteHints
Auto Trait Implementations§
impl Forget for RemoteHints
impl Freeze for RemoteHints
impl Move for RemoteHints
impl RefUnwindSafe for RemoteHints
impl Send for RemoteHints
impl Sync for RemoteHints
impl Unpin for RemoteHints
impl UnsafeUnpin for RemoteHints
impl UnwindSafe for RemoteHints
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