pub struct PeerBinding { /* private fields */ }Expand description
Authenticated peer and established session supplied by the transport adapter.
Construction checks membership and nonzero IDs, not cryptographic identity. Never construct this binding from untrusted packet fields or routing IDs alone.
Implementations§
Source§impl PeerBinding
impl PeerBinding
Sourcepub fn new(
configuration: Configuration,
peer: NodeId,
session: LinkSessionId,
) -> Result<Self, WireError>
pub fn new( configuration: Configuration, peer: NodeId, session: LinkSessionId, ) -> Result<Self, WireError>
Bind one independently authenticated configured voter to its live session.
Sourcepub const fn with_receive_epoch(self, epoch: ReceiveEpoch) -> Self
pub const fn with_receive_epoch(self, epoch: ReceiveEpoch) -> Self
Require epoch-bound normal payloads bound to this locally issued receive epoch.
Set only from the receiver’s own current flow state, never incoming fields.
Rejects legacy PREPARE and stale PREPARE_FLOW before decoding/hashing bodies.
Control and installation-history messages retain their independent rules.
Trait Implementations§
Source§impl Clone for PeerBinding
impl Clone for PeerBinding
impl Copy for PeerBinding
Source§impl Debug for PeerBinding
impl Debug for PeerBinding
impl Eq for PeerBinding
Source§impl PartialEq for PeerBinding
impl PartialEq for PeerBinding
impl StructuralPartialEq for PeerBinding
Auto Trait Implementations§
impl Freeze for PeerBinding
impl RefUnwindSafe for PeerBinding
impl Send for PeerBinding
impl Sync for PeerBinding
impl Unpin for PeerBinding
impl UnsafeUnpin for PeerBinding
impl UnwindSafe for PeerBinding
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