pub enum NetworkAdapter {
Mainnet,
Regtest,
}Variants§
Trait Implementations§
Source§impl CandidType for NetworkAdapter
impl CandidType for NetworkAdapter
Source§impl Clone for NetworkAdapter
impl Clone for NetworkAdapter
Source§fn clone(&self) -> NetworkAdapter
fn clone(&self) -> NetworkAdapter
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DataSize for NetworkAdapter
impl DataSize for NetworkAdapter
Source§const IS_DYNAMIC: bool = true
const IS_DYNAMIC: bool = true
If
true, the type has a heap size that can vary at runtime, depending on the actual value.Source§const STATIC_HEAP_SIZE: usize = 0usize
const STATIC_HEAP_SIZE: usize = 0usize
The amount of space a value of the type always occupies. If
IS_DYNAMIC is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.Source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
Estimates the size of heap memory taken up by this value. Read more
Source§impl Debug for NetworkAdapter
impl Debug for NetworkAdapter
Source§impl<'de> Deserialize<'de> for NetworkAdapter
impl<'de> Deserialize<'de> for NetworkAdapter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Network> for NetworkAdapter
impl From<Network> for NetworkAdapter
Source§impl From<NetworkInRequest> for NetworkAdapter
impl From<NetworkInRequest> for NetworkAdapter
Source§fn from(network: NetworkInRequest) -> Self
fn from(network: NetworkInRequest) -> Self
Converts to this type from the input type.
Source§impl Hash for NetworkAdapter
impl Hash for NetworkAdapter
Source§impl PartialEq for NetworkAdapter
impl PartialEq for NetworkAdapter
Source§impl Serialize for NetworkAdapter
impl Serialize for NetworkAdapter
impl Copy for NetworkAdapter
impl Eq for NetworkAdapter
impl StructuralPartialEq for NetworkAdapter
Auto Trait Implementations§
impl Freeze for NetworkAdapter
impl RefUnwindSafe for NetworkAdapter
impl Send for NetworkAdapter
impl Sync for NetworkAdapter
impl Unpin for NetworkAdapter
impl UnwindSafe for NetworkAdapter
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)