pub struct SyncPeerInfo {
pub peer_pubkey: PublicKey,
pub tree_id: ID,
pub addresses: Vec<Address>,
pub auth: Option<AuthParams>,
pub display_name: Option<String>,
}Expand description
Information needed to register a peer for syncing.
This is used with Sync::register_sync_peer() to declare sync intent.
Fields§
§peer_pubkey: PublicKeyThe peer’s public key
tree_id: IDThe tree/database to sync
addresses: Vec<Address>Initial address hints where the peer might be found
auth: Option<AuthParams>Optional authentication parameters for bootstrap
display_name: Option<String>Optional display name for the peer
Trait Implementations§
Source§impl Clone for SyncPeerInfo
impl Clone for SyncPeerInfo
Source§fn clone(&self) -> SyncPeerInfo
fn clone(&self) -> SyncPeerInfo
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SyncPeerInfo
impl RefUnwindSafe for SyncPeerInfo
impl Send for SyncPeerInfo
impl Sync for SyncPeerInfo
impl Unpin for SyncPeerInfo
impl UnwindSafe for SyncPeerInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more