pub struct ServerHandle {
pub bound: SocketAddr,
pub base_url: String,
/* private fields */
}Expand description
Handle returned by CallbackServer::spawn. Owns the abort guard
for the background task; dropping it shuts the server down.
Fields§
§bound: SocketAddr§base_url: StringImplementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ServerHandle
impl !UnwindSafe for ServerHandle
impl Freeze for ServerHandle
impl Send for ServerHandle
impl Sync for ServerHandle
impl Unpin for ServerHandle
impl UnsafeUnpin for ServerHandle
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