pub struct BridgeState {
pub registries: RwLock<HashMap<String, ShadowRegistry>>,
pub sender_key_store: RwLock<SenderKeyStore>,
pub attestations: RwLock<HashMap<String, StoredAttestation>>,
pub deleted_shadows: RwLock<HashSet<String>>,
pub processed_event_ids: RwLock<HashSet<String>>,
pub messages: RwLock<Vec<EmittedMessage>>,
pub message_sequence: RwLock<u64>,
}Expand description
Shared state for bridge shadow operations.
Holds per-context shadow registries, the sender key store,
platform identity attestations, webhook event deduplication,
and emitted messages, protected by async RwLocks for
concurrent handler access.
Fields§
§registries: RwLock<HashMap<String, ShadowRegistry>>Per-context shadow registries, keyed by context ID.
sender_key_store: RwLock<SenderKeyStore>Sender key store for shadow identity encryption keys.
attestations: RwLock<HashMap<String, StoredAttestation>>Platform identity attestations, keyed by attestation ID.
deleted_shadows: RwLock<HashSet<String>>Set of deleted shadow IDs (historical actions remain in event log).
processed_event_ids: RwLock<HashSet<String>>Set of webhook event IDs already processed (deduplication).
messages: RwLock<Vec<EmittedMessage>>Emitted messages, keyed by message ID.
message_sequence: RwLock<u64>Monotonically increasing sequence counter for emitted messages.
Implementations§
Source§impl BridgeState
impl BridgeState
Trait Implementations§
Source§impl Debug for BridgeState
impl Debug for BridgeState
Auto Trait Implementations§
impl !Freeze for BridgeState
impl !RefUnwindSafe for BridgeState
impl Send for BridgeState
impl Sync for BridgeState
impl Unpin for BridgeState
impl UnsafeUnpin for BridgeState
impl !UnwindSafe for BridgeState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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 moreCreates a shared type from an unshared type.