pub struct HubServer {
pub shared: Arc<Mutex<HubServerShared>>,
pub listen_address: Option<SocketAddr>,
pub listen_thread: Option<JoinHandle<()>>,
pub announce_thread: Option<JoinHandle<()>>,
}
Fields§
§listen_address: Option<SocketAddr>
§listen_thread: Option<JoinHandle<()>>
§announce_thread: Option<JoinHandle<()>>
Implementations§
Source§impl HubServer
impl HubServer
pub fn start_hub_server( digest: Digest, config: &HubServerConfig, hub_router: &HubRouter, ) -> Option<HubServer>
pub fn start_announce_server_default(&mut self, digest: Digest)
pub fn start_announce_server( &mut self, digest: Digest, announce_bind: SocketAddr, announce_send: SocketAddr, announce_backup: SocketAddr, )
pub fn terminate(&mut self)
Auto Trait Implementations§
impl Freeze for HubServer
impl !RefUnwindSafe for HubServer
impl Send for HubServer
impl Sync for HubServer
impl Unpin for HubServer
impl !UnwindSafe for HubServer
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