Struct grin_core::core::compact_block::UntrustedCompactBlock
source · pub struct UntrustedCompactBlock(/* private fields */);
Expand description
Compackt block which does lightweight validation as part of deserialization, it supposed to be used when we can’t trust the channel (eg network)
Trait Implementations§
source§impl From<UntrustedCompactBlock> for CompactBlock
impl From<UntrustedCompactBlock> for CompactBlock
source§fn from(ucb: UntrustedCompactBlock) -> Self
fn from(ucb: UntrustedCompactBlock) -> Self
Converts to this type from the input type.
source§impl Readable for UntrustedCompactBlock
impl Readable for UntrustedCompactBlock
Implementation of Readable for an untrusted compact block, defines how to read a compact block from a binary stream.
Auto Trait Implementations§
impl Freeze for UntrustedCompactBlock
impl RefUnwindSafe for UntrustedCompactBlock
impl Send for UntrustedCompactBlock
impl Sync for UntrustedCompactBlock
impl Unpin for UntrustedCompactBlock
impl UnwindSafe for UntrustedCompactBlock
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