[−][src]Struct sn_node::Network
Implementations
impl Network
[src]
pub async fn new(config: &NodeConfig) -> Result<(Self, EventStream)>
[src]
pub async fn sign_as_node<T: Serialize>(&self, data: &T) -> Result<Signature>
[src]
pub async fn age(&self) -> u8
[src]
pub async fn public_key(&self) -> Ed25519PublicKey
[src]
pub async fn section_public_key(&self) -> Option<PublicKey>
[src]
pub async fn public_key_set(&self) -> Result<PublicKeySet>
[src]
pub async fn name(&self) -> XorName
[src]
pub async fn our_connection_info(&mut self) -> Result<SocketAddr>
[src]
pub async fn our_prefix(&self) -> Prefix
[src]
pub async fn matches_our_prefix(&self, name: XorName) -> bool
[src]
pub async fn send_message(
&mut self,
src: SrcLocation,
dst: DstLocation,
content: Bytes
) -> Result<(), RoutingError>
[src]
&mut self,
src: SrcLocation,
dst: DstLocation,
content: Bytes
) -> Result<(), RoutingError>
pub async fn set_joins_allowed(&mut self, joins_allowed: bool) -> Result<()>
[src]
pub async fn send_message_to_client(
&self,
peer_addr: SocketAddr,
msg: Bytes
) -> Result<()>
[src]
&self,
peer_addr: SocketAddr,
msg: Bytes
) -> Result<()>
pub async fn secret_key_share(&self) -> Result<SecretKeyShare>
[src]
pub async fn our_history(&self) -> SectionProofChain
[src]
pub async fn our_index(&self) -> Result<usize>
[src]
pub async fn our_elder_names(&self) -> BTreeSet<XorName>
[src]
pub async fn our_elder_addresses(&self) -> Vec<(XorName, SocketAddr)>
[src]
pub async fn our_elder_addresses_sorted_by_distance_to(
&self,
name: &XorName
) -> Vec<(XorName, SocketAddr)>
[src]
&self,
name: &XorName
) -> Vec<(XorName, SocketAddr)>
pub async fn our_elder_names_sorted_by_distance_to(
&self,
name: &XorName,
count: usize
) -> Vec<XorName>
[src]
&self,
name: &XorName,
count: usize
) -> Vec<XorName>
pub async fn our_adults(&self) -> Vec<XorName>
[src]
pub async fn our_adults_sorted_by_distance_to(
&self,
name: &XorName,
count: usize
) -> Vec<XorName>
[src]
&self,
name: &XorName,
count: usize
) -> Vec<XorName>
pub async fn is_elder(&self) -> bool
[src]
pub async fn is_adult(&self) -> bool
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Network
[src]
impl Send for Network
[src]
impl Sync for Network
[src]
impl Unpin for Network
[src]
impl !UnwindSafe for Network
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,