pub struct RawAlert(_);Implementations
sourceimpl RawAlert
impl RawAlert
pub const FIELD_COUNT: usize
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>
sourceimpl 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().
Trait Implementations
sourceimpl Entity for RawAlert
impl Entity for RawAlert
type Builder = RawAlertBuilder
const NAME: &'static str
fn new_unchecked(data: Bytes) -> Self
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [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 RefUnwindSafe for RawAlert
impl Send for RawAlert
impl Sync for RawAlert
impl Unpin for RawAlert
impl UnwindSafe for RawAlert
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more