Struct noise::HandshakePattern
source · pub struct HandshakePattern {
pub initiator: InitiatorPattern,
pub responder: OneWayPattern,
}
Fields§
§initiator: InitiatorPattern
§responder: OneWayPattern
Implementations§
source§impl HandshakePattern
impl HandshakePattern
pub fn nn() -> Self
pub fn pre_messages(self) -> &'static [PreMsgKeyPat]
pub fn message_patterns( self, is_initiator: bool ) -> &'static [&'static [MessagePattern]]
Trait Implementations§
source§impl Clone for HandshakePattern
impl Clone for HandshakePattern
source§fn clone(&self) -> HandshakePattern
fn clone(&self) -> HandshakePattern
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 HandshakePattern
impl Debug for HandshakePattern
source§impl Display for HandshakePattern
impl Display for HandshakePattern
source§impl Hash for HandshakePattern
impl Hash for HandshakePattern
source§impl PartialEq for HandshakePattern
impl PartialEq for HandshakePattern
source§fn eq(&self, other: &HandshakePattern) -> bool
fn eq(&self, other: &HandshakePattern) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HandshakePattern
impl Eq for HandshakePattern
impl StructuralPartialEq for HandshakePattern
Auto Trait Implementations§
impl Freeze for HandshakePattern
impl RefUnwindSafe for HandshakePattern
impl Send for HandshakePattern
impl Sync for HandshakePattern
impl Unpin for HandshakePattern
impl UnwindSafe for HandshakePattern
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