[][src]Struct teatree::Configure

pub struct Configure {
    pub current_group: GroupID,
    pub upper_group: GroupID,
    pub p2p_address: SocketAddr,
    pub rpc_address: SocketAddr,
    pub upper_address: SocketAddr,
    pub lower_address: SocketAddr,
    pub bootstrap_peers: Vec<(NodeAddr, SocketAddr)>,
}

Fields

current_group: GroupIDupper_group: GroupIDp2p_address: SocketAddrrpc_address: SocketAddrupper_address: SocketAddrlower_address: SocketAddrbootstrap_peers: Vec<(NodeAddr, SocketAddr)>

Methods

impl Configure[src]

pub fn load(_pk: Option<&NodeAddr>) -> Self[src]

pub fn load_custom<S: SeSerialize + SeDeserializeOwned>() -> Option<S>[src]

Trait Implementations

impl Debug for Configure[src]

impl Serialize for Configure[src]

impl<'de> Deserialize<'de> for Configure[src]

Auto Trait Implementations

impl Send for Configure

impl Sync for Configure

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> Same<T> for T

type Output = T

Should always be Self