Struct fil_types::ZERO_ADDRESS [−][src]
pub struct ZERO_ADDRESS { /* fields omitted */ }
Zero address used to avoid allowing it to be used for verification. This is intentionally disallowed because it is an edge case with Filecoin’s BLS signature verification.
Methods from Deref<Target = Address>
pub fn protocol(&self) -> Protocol
[src]
Returns protocol for Address
pub fn payload(&self) -> &Payload
[src]
Returns the Payload
object from the address, where the respective protocol data is kept
in an enum separated by protocol
pub fn payload_bytes(&self) -> Vec<u8, Global>
[src]
Returns the raw bytes data payload of the Address
pub fn network(&self) -> Network
[src]
Returns network configuration of Address
pub fn to_bytes(&self) -> Vec<u8, Global>
[src]
Returns encoded bytes of Address
pub fn id(&self) -> Result<u64, Error>
[src]
Get ID of the address. ID protocol only.
Trait Implementations
impl Deref for ZERO_ADDRESS
[src]
impl LazyStatic for ZERO_ADDRESS
[src]
fn initialize(lazy: &Self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for ZERO_ADDRESS
impl Send for ZERO_ADDRESS
impl Sync for ZERO_ADDRESS
impl Unpin for ZERO_ADDRESS
impl UnwindSafe for ZERO_ADDRESS
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,