Struct btlib::ServerRecord
source · pub struct ServerRecord {
pub addr: IpAddr,
pub pub_creds: ConcretePub,
}
Expand description
Structure for keeping track of server information in a directory.
Fields§
§addr: IpAddr
The most up-to-date address for this server.
pub_creds: ConcretePub
The public credentials for this server.
Trait Implementations§
source§impl Clone for ServerRecord
impl Clone for ServerRecord
source§fn clone(&self) -> ServerRecord
fn clone(&self) -> ServerRecord
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ServerRecord
impl Debug for ServerRecord
source§impl<'de> Deserialize<'de> for ServerRecord
impl<'de> Deserialize<'de> for ServerRecord
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
source§impl PartialEq<ServerRecord> for ServerRecord
impl PartialEq<ServerRecord> for ServerRecord
source§fn eq(&self, other: &ServerRecord) -> bool
fn eq(&self, other: &ServerRecord) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ServerRecord
impl Serialize for ServerRecord
impl StructuralPartialEq for ServerRecord
Auto Trait Implementations§
impl RefUnwindSafe for ServerRecord
impl Send for ServerRecord
impl Sync for ServerRecord
impl Unpin for ServerRecord
impl UnwindSafe for ServerRecord
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