pub struct RawHeaderNotification {
pub height: usize,
pub header: Vec<u8>,
}Expand description
Notification of a new block header with the header encoded as raw bytes
Fields§
§height: usizeNew block height.
header: Vec<u8>Newly added header.
Trait Implementations§
Source§impl Clone for RawHeaderNotification
impl Clone for RawHeaderNotification
Source§fn clone(&self) -> RawHeaderNotification
fn clone(&self) -> RawHeaderNotification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RawHeaderNotification
impl Debug for RawHeaderNotification
Source§impl<'de> Deserialize<'de> for RawHeaderNotification
impl<'de> Deserialize<'de> for RawHeaderNotification
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RawHeaderNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RawHeaderNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl TryFrom<RawHeaderNotification> for HeaderNotification
impl TryFrom<RawHeaderNotification> for HeaderNotification
Source§fn try_from(
raw: RawHeaderNotification,
) -> Result<HeaderNotification, <HeaderNotification as TryFrom<RawHeaderNotification>>::Error>
fn try_from( raw: RawHeaderNotification, ) -> Result<HeaderNotification, <HeaderNotification as TryFrom<RawHeaderNotification>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RawHeaderNotification
impl RefUnwindSafe for RawHeaderNotification
impl Send for RawHeaderNotification
impl Sync for RawHeaderNotification
impl Unpin for RawHeaderNotification
impl UnsafeUnpin for RawHeaderNotification
impl UnwindSafe for RawHeaderNotification
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