pub struct RuntimeState { /* private fields */ }Expand description
Transport state shared by every connection in one running server.
In particular, file-stream admission is created once here and cloned into connection tasks. Static services never own or acquire this semaphore.
Implementations§
Source§impl RuntimeState
impl RuntimeState
Sourcepub fn file_stream_semaphore(&self) -> &Arc<Semaphore> ⓘ
pub fn file_stream_semaphore(&self) -> &Arc<Semaphore> ⓘ
Return the server-wide file-stream admission pool.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuntimeState
impl RefUnwindSafe for RuntimeState
impl Send for RuntimeState
impl Sync for RuntimeState
impl Unpin for RuntimeState
impl UnsafeUnpin for RuntimeState
impl UnwindSafe for RuntimeState
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