pub enum HandshakeResponse {
Rebootstrap(Vec<(XorName, SocketAddr)>),
Join(Vec<(XorName, SocketAddr)>),
Challenge(PublicKey, Vec<u8>),
InvalidSection,
}Expand description
Handshake responses sent from vaults to clients.
Variants§
Rebootstrap(Vec<(XorName, SocketAddr)>)
Sent by nodes when a client should attempt to connect to the section that’s closest to its destination (section managing the client’s account).
Join(Vec<(XorName, SocketAddr)>)
Sent by nodes when a client reaches its destination section.
Challenge(PublicKey, Vec<u8>)
Sent by nodes as a response to a valid HandshakeRequest::Join.
InvalidSection
Sent by nodes as a response to an invalid HandshakeRequest::Join (when a client attempts to join a wrong section).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HandshakeResponse
impl<'de> Deserialize<'de> for HandshakeResponse
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
Auto Trait Implementations§
impl Freeze for HandshakeResponse
impl RefUnwindSafe for HandshakeResponse
impl Send for HandshakeResponse
impl Sync for HandshakeResponse
impl Unpin for HandshakeResponse
impl UnwindSafe for HandshakeResponse
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> 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