pub struct RawAlert(/* private fields */);
Implementations§
source§impl RawAlert
impl RawAlert
sourcepub fn calc_alert_hash(&self) -> Byte32
pub fn calc_alert_hash(&self) -> Byte32
Calls RawAlertReader.calc_alert_hash()
for self.as_reader()
.
source§impl RawAlert
impl RawAlert
pub const FIELD_COUNT: usize = 7usize
pub fn total_size(&self) -> usize
pub fn field_count(&self) -> usize
pub fn count_extra_fields(&self) -> usize
pub fn has_extra_fields(&self) -> bool
pub fn notice_until(&self) -> Uint64
pub fn id(&self) -> Uint32
pub fn cancel(&self) -> Uint32
pub fn priority(&self) -> Uint32
pub fn message(&self) -> Bytes
pub fn min_version(&self) -> BytesOpt
pub fn max_version(&self) -> BytesOpt
pub fn as_reader<'r>(&'r self) -> RawAlertReader<'r>
Trait Implementations§
source§impl Entity for RawAlert
impl Entity for RawAlert
type Builder = RawAlertBuilder
const NAME: &'static str = "RawAlert"
fn new_unchecked(data: Bytes) -> RawAlert
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> Result<RawAlert, VerificationError>
fn from_compatible_slice(slice: &[u8]) -> Result<RawAlert, VerificationError>
fn new_builder() -> <RawAlert as Entity>::Builder
fn as_builder(self) -> <RawAlert as Entity>::Builder
Auto Trait Implementations§
impl RefUnwindSafe for RawAlert
impl Send for RawAlert
impl Sync for RawAlert
impl Unpin for RawAlert
impl UnwindSafe for RawAlert
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