[][src]Struct in3_sys::in3_node

#[repr(C)]pub struct in3_node {
    pub address: *mut bytes_t,
    pub deposit: u64,
    pub index: u32,
    pub capacity: u32,
    pub props: in3_node_props_t,
    pub url: *mut c_char,
    pub attrs: u8,
}

incubed node-configuration.

These information are read from the Registry contract and stored in this struct representing a server or node.

Fields

address: *mut bytes_t

< address of the server

deposit: u64

< the deposit stored in the registry contract, which this would lose if it sends a wrong blockhash

index: u32

< index within the nodelist, also used in the contract as key

capacity: u32

< the maximal capacity able to handle

props: in3_node_props_t

< used to identify the capabilities of the node. See in3_node_props_type_t in nodelist.h

url: *mut c_char

< the url of the node

attrs: u8

< bitmask of internal attributes

Trait Implementations

impl Clone for in3_node[src]

impl Copy for in3_node[src]

impl Debug for in3_node[src]

Auto Trait Implementations

impl !Send for in3_node

impl !Sync for in3_node

impl Unpin for in3_node

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.