pub struct SchemaServer { /* private fields */ }Expand description
Schema Registry HTTP Server
Implementations§
Source§impl SchemaServer
impl SchemaServer
Sourcepub fn new(registry: SchemaRegistry, config: ServerConfig) -> Self
pub fn new(registry: SchemaRegistry, config: ServerConfig) -> Self
Create a new schema server
Sourcepub async fn run(self, addr: SocketAddr) -> Result<()>
pub async fn run(self, addr: SocketAddr) -> Result<()>
Run the server
Auto Trait Implementations§
impl Freeze for SchemaServer
impl !RefUnwindSafe for SchemaServer
impl Send for SchemaServer
impl Sync for SchemaServer
impl Unpin for SchemaServer
impl UnsafeUnpin for SchemaServer
impl !UnwindSafe for SchemaServer
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