Struct bitcoin_support::LockedPoolManager
source · pub struct LockedPoolManager { /* private fields */ }Expand description
| Singleton class to keep track of locked
| (ie, non-swappable) memory, for use
| in std::allocator templates.
|
| Some implementations of the STL allocate
| memory in some constructors (i.e.,
| see MSVC’s vector
Implementations§
source§impl LockedPoolManager
impl LockedPoolManager
sourcepub fn instance() -> &'static mut LockedPoolManager
pub fn instance() -> &'static mut LockedPoolManager
| Return the current instance, or create | it once |
pub fn new(_allocator_in: Box<dyn LockedPageAllocator>) -> Self
sourcepub fn locking_failed(&mut self) -> bool
pub fn locking_failed(&mut self) -> bool
| Called when locking fails, warn the | user here |
sourcepub fn create_instance(&mut self)
pub fn create_instance(&mut self)
| Create a new LockedPoolManager specialized | to the OS |
Auto Trait Implementations§
impl !RefUnwindSafe for LockedPoolManager
impl !Send for LockedPoolManager
impl !Sync for LockedPoolManager
impl Unpin for LockedPoolManager
impl !UnwindSafe for LockedPoolManager
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more