pub struct ServerHandle { /* private fields */ }Expand description
Handle representing a running HTTP/HTTPS server instance.
Implementations§
Source§impl ServerHandle
impl ServerHandle
Sourcepub fn bound_port(&self) -> u16
pub fn bound_port(&self) -> u16
Returns the port the server is listening on.
Sourcepub fn download_manager(&self) -> &Arc<DownloadManager> ⓘ
pub fn download_manager(&self) -> &Arc<DownloadManager> ⓘ
Returns a reference to the download manager.
Sourcepub fn dufs_manager(&self) -> &Arc<DufsManager> ⓘ
pub fn dufs_manager(&self) -> &Arc<DufsManager> ⓘ
Returns a reference to the Dufs folder manager.
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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