Struct ckb_types::packed::Alert [−][src]
pub struct Alert(_);
Implementations
impl Alert[src]
impl Alert[src]pub const FIELD_COUNT: usize[src]
pub fn total_size(&self) -> usize[src]
pub fn field_count(&self) -> usize[src]
pub fn count_extra_fields(&self) -> usize[src]
pub fn has_extra_fields(&self) -> bool[src]
pub fn raw(&self) -> RawAlert[src]
pub fn signatures(&self) -> BytesVec[src]
pub fn as_reader<'r>(&'r self) -> AlertReader<'r>[src]
impl Alert[src]
impl Alert[src]pub fn calc_alert_hash(&self) -> Byte32[src]
pub fn calc_alert_hash(&self) -> Byte32[src]Calls AlertReader.calc_alert_hash() for self.as_reader().
Trait Implementations
impl Entity for Alert[src]
impl Entity for Alert[src]type Builder = AlertBuilder
const NAME: &'static str[src]
fn new_unchecked(data: Bytes) -> Self[src]
fn as_bytes(&self) -> Bytes[src]
fn as_slice(&self) -> &[u8][src]
fn from_slice(slice: &[u8]) -> VerificationResult<Self>[src]
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>[src]
fn new_builder() -> Self::Builder[src]
fn as_builder(self) -> Self::Builder[src]
impl Eq for Alert[src]
Auto Trait Implementations
impl RefUnwindSafe for Alert
impl Send for Alert
impl Sync for Alert
impl Unpin for Alert
impl UnwindSafe for Alert
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,