pub enum Network {
Main,
Test,
Id(u64),
}
Variants§
Implementations§
source§impl Network
impl Network
pub fn to_prefix(&self) -> Result<String, EncodingError>
pub fn from_prefix(prefix: &str) -> Result<Self, DecodingError>
Trait Implementations§
source§impl PartialEq for Network
impl PartialEq for Network
impl Copy for Network
impl Eq for Network
impl StructuralPartialEq for Network
Auto Trait Implementations§
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnwindSafe for Network
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