pub struct UpdateServerHandle { /* private fields */ }Expand description
Running handle to a live Hyperlane HTTP + SSE update server with clean programmatic shutdown.
Implementations§
Source§impl UpdateServerHandle
Lifecycle control methods on UpdateServerHandle.
impl UpdateServerHandle
Lifecycle control methods on UpdateServerHandle.
Sourcepub fn address(&self) -> SocketAddr
pub fn address(&self) -> SocketAddr
Returns the bound SocketAddr of the running Hyperlane update server.
§Returns
SocketAddr- Bound address.
Sourcepub fn store(&self) -> &UpdateStore
pub fn store(&self) -> &UpdateStore
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Sourcepub fn report(&self, once: bool) -> UpdateServerReport
pub fn report(&self, once: bool) -> UpdateServerReport
Trait Implementations§
Source§impl Drop for UpdateServerHandle
Available on crate feature update-server only.Automatic server cleanup when UpdateServerHandle is dropped.
impl Drop for UpdateServerHandle
Available on crate feature
update-server only.Automatic server cleanup when UpdateServerHandle is dropped.
Auto Trait Implementations§
impl !Freeze for UpdateServerHandle
impl !RefUnwindSafe for UpdateServerHandle
impl !UnwindSafe for UpdateServerHandle
impl Forget for UpdateServerHandle
impl Move for UpdateServerHandle
impl Send for UpdateServerHandlewhere
Arc<UpdateServerState>: Send,
Arc<dyn FutureFn<(), Output = Pin<Box<dyn Future<Output = ()> + Send>>>>: Send,
AtomicCell<Core>: Send,
AtomicUsize: Send,
Mutex<LinkedList<Waiter>>: Send,
Mutex<RawMutex, LinkedList<Waiter>>: Send,
Arc<Handle>: Send,
Arc<Handle>: Send,
Arc<Inner>: Send,
Arc<Inner<()>>: Send,
impl Sync for UpdateServerHandlewhere
Arc<UpdateServerState>: Sync,
Arc<dyn FutureFn<(), Output = Pin<Box<dyn Future<Output = ()> + Send>>>>: Sync,
AtomicCell<Core>: Sync,
AtomicUsize: Sync,
Mutex<LinkedList<Waiter>>: Sync,
Mutex<RawMutex, LinkedList<Waiter>>: Sync,
Arc<Handle>: Sync,
Arc<Handle>: Sync,
Arc<Inner>: Sync,
Arc<Inner<()>>: Sync,
impl Unpin for UpdateServerHandlewhere
Arc<UpdateServerState>: Unpin,
Arc<dyn FutureFn<(), Output = Pin<Box<dyn Future<Output = ()> + Send>>>>: Unpin,
Align8<*mut Core>: Unpin,
Align8<usize>: Unpin,
Align4<u32>: Unpin,
Align1<u8>: Unpin,
*const Waiter is !null: Unpin,
Arc<Handle>: Unpin,
Arc<Handle>: Unpin,
Arc<Inner>: Unpin,
Arc<Inner<()>>: Unpin,
impl UnsafeUnpin for UpdateServerHandlewhere
*const ArcInner<UpdateServerState> is !null: UnsafeUnpin,
PhantomData<ArcInner<UpdateServerState>>: UnsafeUnpin,
*const ArcInner<dyn FutureFn<(), Output = Pin<Box<dyn Future<Output = ()> + Send>>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn FutureFn<(), Output = Pin<Box<dyn Future<Output = ()> + Send>>>>>: UnsafeUnpin,
Align8<*mut Core>: UnsafeUnpin,
Align8<usize>: UnsafeUnpin,
PhantomData<Mutex<LinkedList<Waiter>>>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const Waiter is !null: UnsafeUnpin,
*const ArcInner<Handle> is !null: UnsafeUnpin,
PhantomData<ArcInner<Handle>>: UnsafeUnpin,
*const ArcInner<Handle> is !null: UnsafeUnpin,
PhantomData<ArcInner<Handle>>: UnsafeUnpin,
*const ArcInner<Inner> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner>>: UnsafeUnpin,
*const ArcInner<Inner<()>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner<()>>>: UnsafeUnpin,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendSync for T
impl<T> AnySync 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
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