pub struct TileServer { /* private fields */ }Expand description
Tile server instance
Implementations§
Source§impl TileServer
impl TileServer
Sourcepub fn new(config: Config) -> ServerResult<Self>
pub fn new(config: Config) -> ServerResult<Self>
Create a new tile server
Sourcepub fn build_router(&self) -> Router
pub fn build_router(&self) -> Router
Build the Axum router
Sourcepub async fn serve(self) -> ServerResult<()>
pub async fn serve(self) -> ServerResult<()>
Start the server
Sourcepub fn registry(&self) -> &DatasetRegistry
pub fn registry(&self) -> &DatasetRegistry
Get the dataset registry
Auto Trait Implementations§
impl Freeze for TileServer
impl RefUnwindSafe for TileServer
impl Send for TileServer
impl Sync for TileServer
impl Unpin for TileServer
impl UnsafeUnpin for TileServer
impl UnwindSafe for TileServer
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