pub struct DialIdentity {
pub key: SigningKey,
pub genesis: [u8; 32],
pub platform: String,
pub capabilities: Vec<String>,
}Expand description
What this node needs to introduce itself on an outbound connection.
Fields§
§key: SigningKeyThis node’s Ed25519 key (its node id derives from it).
genesis: [u8; 32]Cluster genesis hash to present.
platform: StringPlatform string.
capabilities: Vec<String>Capability tags.
Implementations§
Source§impl DialIdentity
impl DialIdentity
Sourcepub fn hello(
&self,
handshake_hash: &[u8],
noise_static: &[u8],
ts: u64,
) -> AdmitHello
pub fn hello( &self, handshake_hash: &[u8], noise_static: &[u8], ts: u64, ) -> AdmitHello
Hello for a session. noise_static is our own Noise static public
key (see noise_static_public).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DialIdentity
impl RefUnwindSafe for DialIdentity
impl Send for DialIdentity
impl Sync for DialIdentity
impl Unpin for DialIdentity
impl UnsafeUnpin for DialIdentity
impl UnwindSafe for DialIdentity
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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