pub struct SocialQdnfLink<'a> { /* private fields */ }Expand description
One peer’s QDNF overlay on an existing WireGuard tunnel.
recv pumps the mesh and consumes inner packets. Use it on a dedicated
test/control path; production chat demuxes ports::CHAT from pump_all
/ MeshService inbound and ignores this port.
Implementations§
Source§impl<'a> SocialQdnfLink<'a>
impl<'a> SocialQdnfLink<'a>
Sourcepub fn attach(
mesh: &'a mut SocialWebNet,
peer_id: &'a str,
local: ObservedLocator,
remote: ObservedLocator,
scope: ScopeEpoch,
mtu: u16,
) -> Result<Self, QdnfError>
pub fn attach( mesh: &'a mut SocialWebNet, peer_id: &'a str, local: ObservedLocator, remote: ObservedLocator, scope: ScopeEpoch, mtu: u16, ) -> Result<Self, QdnfError>
Attach QDNF to an already-peered tunnel (peer_id must exist).
Sourcepub fn locator(&self) -> ObservedLocator
pub fn locator(&self) -> ObservedLocator
QDNF locator.
Trait Implementations§
Source§impl Bearer for SocialQdnfLink<'_>
impl Bearer for SocialQdnfLink<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SocialQdnfLink<'a>
impl<'a> !UnwindSafe for SocialQdnfLink<'a>
impl<'a> Freeze for SocialQdnfLink<'a>
impl<'a> Send for SocialQdnfLink<'a>
impl<'a> Sync for SocialQdnfLink<'a>
impl<'a> Unpin for SocialQdnfLink<'a>
impl<'a> UnsafeUnpin for SocialQdnfLink<'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more