pub struct DiscoveryServer { /* private fields */ }Expand description
Discovery server that handles UDP discovery requests
Implementations§
Source§impl DiscoveryServer
impl DiscoveryServer
Sourcepub fn new(config: ServiceConfig) -> Self
pub fn new(config: ServiceConfig) -> Self
Create a new discovery server
Sourcepub async fn start(&mut self) -> Result<(), ServerError>
pub async fn start(&mut self) -> Result<(), ServerError>
Start the discovery server
Sourcepub async fn stop(&mut self) -> Result<(), ServerError>
pub async fn stop(&mut self) -> Result<(), ServerError>
Stop the discovery server
Auto Trait Implementations§
impl Freeze for DiscoveryServer
impl !RefUnwindSafe for DiscoveryServer
impl Send for DiscoveryServer
impl Sync for DiscoveryServer
impl Unpin for DiscoveryServer
impl UnsafeUnpin for DiscoveryServer
impl !UnwindSafe for DiscoveryServer
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