Struct bitcoin_block::BlockValidationState
source · pub struct BlockValidationState { /* private fields */ }Implementations§
source§impl BlockValidationState
impl BlockValidationState
pub fn invalid(
&mut self,
result: BlockValidationResult,
reject_reason: Option<&str>,
debug_message: Option<&str>
) -> bool
pub fn error(&mut self, reject_reason: &String) -> bool
pub fn is_valid(&self) -> bool
pub fn is_invalid(&self) -> bool
pub fn is_error(&self) -> bool
pub fn get_result(&self) -> BlockValidationResult
pub fn get_reject_reason(&self) -> String
pub fn get_debug_message(&self) -> String
pub fn to_string(&self) -> String
Trait Implementations§
source§impl Default for BlockValidationState
impl Default for BlockValidationState
source§fn default() -> BlockValidationState
fn default() -> BlockValidationState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for BlockValidationState
impl Send for BlockValidationState
impl Sync for BlockValidationState
impl Unpin for BlockValidationState
impl UnwindSafe for BlockValidationState
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