pub struct Tx3Node { /* private fields */ }Expand description
A Tx3 p2p communications node
Implementations§
Source§impl Tx3Node
impl Tx3Node
Sourcepub async fn new(config: Tx3Config) -> Result<(Self, Tx3Inbound)>
pub async fn new(config: Tx3Config) -> Result<(Self, Tx3Inbound)>
Construct/bind a new Tx3Node with given configuration
Sourcepub fn local_tls_cert_digest(&self) -> &TlsCertDigest
pub fn local_tls_cert_digest(&self) -> &TlsCertDigest
Get the local TLS certificate digest associated with this node
Sourcepub fn local_addrs(&self) -> &[Tx3Url]
pub fn local_addrs(&self) -> &[Tx3Url]
Get our bound addresses, if any
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tx3Node
impl !RefUnwindSafe for Tx3Node
impl Send for Tx3Node
impl Sync for Tx3Node
impl Unpin for Tx3Node
impl !UnwindSafe for Tx3Node
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