pub struct ThreadGuardedStackBuilder { /* private fields */ }Expand description
Creates a thread with a custom sized and guarded stack. This means that a region at the end of the threads stack is defined which is later used to discover possible memory issues.
Is being created when calling stack_size or
guard_size
inside the ThreadBuilder.
For an example take a look at ThreadBuilders last example.
Implementations§
Source§impl ThreadGuardedStackBuilder
impl ThreadGuardedStackBuilder
Sourcepub fn guard_size(self, value: u64) -> Self
pub fn guard_size(self, value: u64) -> Self
Sourcepub fn stack_size(self, value: u64) -> Self
pub fn stack_size(self, value: u64) -> Self
Sourcepub fn spawn<'thread, T, F>(self, f: F) -> Result<Thread, ThreadSpawnError>
pub fn spawn<'thread, T, F>(self, f: F) -> Result<Thread, ThreadSpawnError>
Auto Trait Implementations§
impl Freeze for ThreadGuardedStackBuilder
impl RefUnwindSafe for ThreadGuardedStackBuilder
impl Send for ThreadGuardedStackBuilder
impl Sync for ThreadGuardedStackBuilder
impl Unpin for ThreadGuardedStackBuilder
impl UnwindSafe for ThreadGuardedStackBuilder
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