Struct bitcoin_net::MOST_RECENT_COMPACT_BLOCK
source · pub struct MOST_RECENT_COMPACT_BLOCK { /* private fields */ }
Methods from Deref<Target = Amo<BlockHeaderAndShortTxIDs>>§
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub fn take(&self) -> Option<T>
pub fn load(&self, inner: Option<T>)
pub fn replace(&self, inner: &T)
pub fn get<'a>(&'a self) -> MappedRwLockReadGuard<'a, RawRwLock, T>
pub fn get_mut<'a>(&'a self) -> MappedRwLockWriteGuard<'a, RawRwLock, T>
pub fn getopt<'a>(&'a self) -> RwLockReadGuard<'a, RawRwLock, Option<T>>
pub fn getopt_mut<'a>(&'a self) -> RwLockWriteGuard<'a, RawRwLock, Option<T>>
Trait Implementations§
source§impl Deref for MOST_RECENT_COMPACT_BLOCK
impl Deref for MOST_RECENT_COMPACT_BLOCK
§type Target = Amo<BlockHeaderAndShortTxIDs>
type Target = Amo<BlockHeaderAndShortTxIDs>
The resulting type after dereferencing.
source§fn deref(&self) -> &Amo<BlockHeaderAndShortTxIDs>
fn deref(&self) -> &Amo<BlockHeaderAndShortTxIDs>
Dereferences the value.
impl LazyStatic for MOST_RECENT_COMPACT_BLOCK
Auto Trait Implementations§
impl RefUnwindSafe for MOST_RECENT_COMPACT_BLOCK
impl Send for MOST_RECENT_COMPACT_BLOCK
impl Sync for MOST_RECENT_COMPACT_BLOCK
impl Unpin for MOST_RECENT_COMPACT_BLOCK
impl UnwindSafe for MOST_RECENT_COMPACT_BLOCK
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