pub struct ProtectedStack { /* private fields */ }
Expand description
Enhanced stack with multiple protection mechanisms
Implementations§
Source§impl ProtectedStack
impl ProtectedStack
Sourcepub unsafe fn new(memory: &'static mut [u8], guard: StackGuard) -> Self
pub unsafe fn new(memory: &'static mut [u8], guard: StackGuard) -> Self
Sourcepub fn check_overflow(&self) -> StackStatus
pub fn check_overflow(&self) -> StackStatus
Check for stack overflow using multiple methods
Sourcepub fn get_stats(&self) -> StackStats
pub fn get_stats(&self) -> StackStats
Get detailed stack statistics
Auto Trait Implementations§
impl !Freeze for ProtectedStack
impl RefUnwindSafe for ProtectedStack
impl !Send for ProtectedStack
impl !Sync for ProtectedStack
impl Unpin for ProtectedStack
impl UnwindSafe for ProtectedStack
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