Struct hedera::NodeAddressBook
source · pub struct NodeAddressBook {
pub node_addresses: Vec<NodeAddress>,
}
Expand description
A list of nodes and their metadata.
Response from NodeAddressBookQuery
Fields§
§node_addresses: Vec<NodeAddress>
all the nodes this address book contains.
Implementations§
source§impl NodeAddressBook
impl NodeAddressBook
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Create a new NodeAddressBook
from protobuf-encoded bytes
.
§Errors
Error::FromProtobuf
if decoding the bytes fails to produce a valid protobuf.Error::FromProtobuf
if decoding the protobuf fails.
Trait Implementations§
source§impl Clone for NodeAddressBook
impl Clone for NodeAddressBook
source§fn clone(&self) -> NodeAddressBook
fn clone(&self) -> NodeAddressBook
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NodeAddressBook
impl Debug for NodeAddressBook
source§impl From<NodeAddressBook> for AnyMirrorQueryResponse
impl From<NodeAddressBook> for AnyMirrorQueryResponse
source§fn from(value: NodeAddressBook) -> Self
fn from(value: NodeAddressBook) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NodeAddressBook
impl RefUnwindSafe for NodeAddressBook
impl Send for NodeAddressBook
impl Sync for NodeAddressBook
impl Unpin for NodeAddressBook
impl UnwindSafe for NodeAddressBook
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request