pub struct UpdateServerState { /* private fields */ }Expand description
Shared state mounted into Hyperlane routes for read-only manifest, blob, and SSE delivery.
Implementations§
Source§impl UpdateServerState
Shared state management for the Hyperlane update server.
Inherent implementation of UpdateServerState.
impl UpdateServerState
Shared state management for the Hyperlane update server.
Inherent implementation of UpdateServerState.
Sourcepub fn new(store: UpdateStore, sse_config: SseConfig) -> Self
pub fn new(store: UpdateStore, sse_config: SseConfig) -> Self
Sourcepub fn with_proxy_base(self, proxy_base: String) -> Self
pub fn with_proxy_base(self, proxy_base: String) -> Self
Sourcepub fn proxy_base(&self) -> &str
pub fn proxy_base(&self) -> &str
Sourcepub fn store(&self) -> &UpdateStore
pub fn store(&self) -> &UpdateStore
Sourcepub fn sse_config(&self) -> &SseConfig
pub fn sse_config(&self) -> &SseConfig
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Returns whether the background pointer watcher should continue running.
§Returns
bool-truewhile active.
Sourcepub fn sync_store_events_to_sse(&self)
pub fn sync_store_events_to_sse(&self)
Scans filesystem channel pointers and bounded event logs, publishing each new monotonic sequence ONCE to SseHub.
Trait Implementations§
Auto Trait Implementations§
impl Forget for UpdateServerState
impl Freeze for UpdateServerStatewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<SseHubInner> is !null: Freeze,
PhantomData<ArcInner<SseHubInner>>: Freeze,
*const ArcInner<Mutex<HashMap<(String, String), u64>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<HashMap<(String, String), u64>>>>: Freeze,
*const ArcInner<Atomic<bool>> is !null: Freeze,
PhantomData<ArcInner<Atomic<bool>>>: Freeze,
impl Move for UpdateServerState
impl RefUnwindSafe for UpdateServerStatewhere
Atomic<usize>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
RwLock<HashMap<Arc<str>, Arc<TopicState>, BuildHasherDefault<FxHasher>>>: RefUnwindSafe,
Mutex<HashMap<(Id, u64), Arc<SseHeartbeatWheel>>>: RefUnwindSafe,
Mutex<HashMap<(String, String), u64>>: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
impl Send for UpdateServerState
impl Sync for UpdateServerState
impl Unpin for UpdateServerState
impl UnsafeUnpin for UpdateServerStatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<SseHubInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<SseHubInner>>: UnsafeUnpin,
*const ArcInner<Mutex<HashMap<(String, String), u64>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<HashMap<(String, String), u64>>>>: UnsafeUnpin,
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
impl UnwindSafe for UpdateServerStatewhere
RawVecInner: UnwindSafe,
Arc<SseHubInner>: UnwindSafe,
Arc<Mutex<HashMap<(String, String), u64>>>: UnwindSafe,
Arc<Atomic<bool>>: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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