pub struct QueryApiServer { /* private fields */ }Expand description
A bound Neo4j Query API listener.
Implementations§
Source§impl QueryApiServer
impl QueryApiServer
Sourcepub async fn bind(config: QueryApiServerConfig) -> Result<Self>
pub async fn bind(config: QueryApiServerConfig) -> Result<Self>
Validate database and TLS access and bind the configured listener.
Sourcepub fn local_addr(&self) -> Result<SocketAddr>
pub fn local_addr(&self) -> Result<SocketAddr>
Return the actual bound address, including an assigned port for port zero.
Sourcepub async fn serve(self, shutdown: CancellationToken) -> Result<()>
pub async fn serve(self, shutdown: CancellationToken) -> Result<()>
Serve HTTP requests until cancellation and then roll back open transactions.
Auto Trait Implementations§
impl !RefUnwindSafe for QueryApiServer
impl !UnwindSafe for QueryApiServer
impl Freeze for QueryApiServer
impl Send for QueryApiServer
impl Sync for QueryApiServer
impl Unpin for QueryApiServer
impl UnsafeUnpin for QueryApiServer
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