pub struct Server { /* private fields */ }Implementations§
Source§impl Server
impl Server
pub fn new( udp_bind: SocketAddr, tcp_bind: SocketAddr, zone_provider: impl ZoneProvider, ) -> Self
pub async fn run(self)
Auto Trait Implementations§
impl Forget for Server
impl Freeze for Serverwhere
*const ArcInner<Chan<Zone, Semaphore>> is !null: Freeze,
PhantomData<ArcInner<Chan<Zone, Semaphore>>>: Freeze,
*const ArcInner<Chan<ZoneProviderUpdate, Semaphore>> is !null: Freeze,
PhantomData<ArcInner<Chan<ZoneProviderUpdate, Semaphore>>>: Freeze,
*const ArcInner<ArcSwapAny<Arc<Zone>>> is !null: Freeze,
PhantomData<ArcInner<ArcSwapAny<Arc<Zone>>>>: Freeze,
impl Move for Server
impl RefUnwindSafe for Serverwhere
Atomic<usize>: RefUnwindSafe,
Chan<Zone, Semaphore>: RefUnwindSafe,
Chan<ZoneProviderUpdate, Semaphore>: RefUnwindSafe,
Atomic<*mut Zone>: RefUnwindSafe,
u16: RefUnwindSafe,
String: RefUnwindSafe,
u8: RefUnwindSafe,
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Serverwhere
*const ArcInner<Chan<Zone, Semaphore>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Chan<Zone, Semaphore>>>: UnsafeUnpin,
*const ArcInner<Chan<ZoneProviderUpdate, Semaphore>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Chan<ZoneProviderUpdate, Semaphore>>>: UnsafeUnpin,
*const ArcInner<ArcSwapAny<Arc<Zone>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<ArcSwapAny<Arc<Zone>>>>: UnsafeUnpin,
impl UnwindSafe for Serverwhere
Arc<Chan<Zone, Semaphore>>: UnwindSafe,
Arc<Chan<ZoneProviderUpdate, Semaphore>>: UnwindSafe,
Arc<ArcSwapAny<Arc<Zone>>>: UnwindSafe,
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