pub fn best_slot(&self) -> Result<Slot, Error> {
        self.canonical_head
            .try_read_for(HEAD_LOCK_TIMEOUT)
            .map(|head| head.beacon_block.slot())
            .ok_or(Error::CanonicalHeadLockTimeout)
    }
/// Returns the slot of the highest block in the canonical chain.
Returns the slot of the highest block in the canonical chain.
Returns the slot of the highest block in the canonical chain .
pub fn best_slot(&self) -> Result<Slot, Error> {
        self.canonical_head
            .try_read_for(HEAD_LOCK_TIMEOUT)
            .map(|head| head.beacon_block.slot())
            .ok_or(Error::CanonicalHeadLockTimeout)
    }
pub fn best_slot ( & self ) -> Result < Slot , Error > { self . canonical_head . try_read_for ( HEAD_LOCK_TIMEOUT ) . map ( | head | head . beacon_block . slot ( ) ) . ok_or ( Error :: CanonicalHeadLockTimeout ) }
Returns the slot of the highest block in the canonical chain.
Returns the slot of the highest block in the canonical chain .
&self