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
const NAME: &'static str = "RawAlert"
type Builder = RawAlertBuilder
fn new_unchecked(data: Bytes) -> Self
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> VerificationResult<Self>
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>
fn new_builder() -> Self::Builder
fn as_builder(self) -> Self::Builder
Auto Trait Implementations§
impl !Freeze for RawAlert
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)