pub struct ShellThreads { /* private fields */ }Implementations§
Source§impl ShellThreads
impl ShellThreads
pub const STACK_BYTES: usize
pub fn new(maximum: u32, runtime: Handle) -> Self
pub fn reserve<const N: usize>( &self, ) -> Result<[ThreadPermit; N], LimitExceeded>
pub fn reserve_many( &self, count: usize, ) -> Result<Vec<ThreadPermit>, LimitExceeded>
Trait Implementations§
Source§impl Clone for ShellThreads
impl Clone for ShellThreads
Auto Trait Implementations§
impl Forget for ShellThreads
impl Freeze for ShellThreads
impl RefUnwindSafe for ShellThreads
impl Send for ShellThreads
impl Sync for ShellThreads
impl Unpin for ShellThreads
impl UnsafeUnpin for ShellThreads
impl UnwindSafe for ShellThreads
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