pub struct ProxyInstanceIdentity { /* private fields */ }Expand description
Native-process and listener lifecycle identity for replay isolation.
The native host must generate a fresh unpredictable process session on every process start and advance both generations for their corresponding lifecycle replacement. This value is configuration identity, not provider authority.
Implementations§
Source§impl ProxyInstanceIdentity
impl ProxyInstanceIdentity
Sourcepub fn new(
process_session: [u8; 16],
process_generation: u64,
listener_generation: u64,
) -> Result<Self, ProxyError>
pub fn new( process_session: [u8; 16], process_generation: u64, listener_generation: u64, ) -> Result<Self, ProxyError>
Validate nonzero process and listener lifecycle stamps.
Sourcepub const fn process_session(self) -> [u8; 16]
pub const fn process_session(self) -> [u8; 16]
Fresh native-process session stamp.
Sourcepub const fn process_generation(self) -> u64
pub const fn process_generation(self) -> u64
Native-process lifecycle generation.
Sourcepub const fn listener_generation(self) -> u64
pub const fn listener_generation(self) -> u64
Exact listener lifecycle generation.
Trait Implementations§
Source§impl Clone for ProxyInstanceIdentity
impl Clone for ProxyInstanceIdentity
impl Copy for ProxyInstanceIdentity
Source§impl Debug for ProxyInstanceIdentity
impl Debug for ProxyInstanceIdentity
impl Eq for ProxyInstanceIdentity
Source§impl PartialEq for ProxyInstanceIdentity
impl PartialEq for ProxyInstanceIdentity
impl StructuralPartialEq for ProxyInstanceIdentity
Auto Trait Implementations§
impl Freeze for ProxyInstanceIdentity
impl RefUnwindSafe for ProxyInstanceIdentity
impl Send for ProxyInstanceIdentity
impl Sync for ProxyInstanceIdentity
impl Unpin for ProxyInstanceIdentity
impl UnsafeUnpin for ProxyInstanceIdentity
impl UnwindSafe for ProxyInstanceIdentity
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.