pub struct TcpTransportServer { /* private fields */ }Trait Implementations§
Source§impl TransportServer for TcpTransportServer
impl TransportServer for TcpTransportServer
fn get_address(&self) -> &String
Source§fn get_transport_ownership_proof(&self) -> Arc<dyn TransportOwnershipProof>
fn get_transport_ownership_proof(&self) -> Arc<dyn TransportOwnershipProof>
Returns the per-transport ownership-proof object used to (a) produce the proof bytes
embedded in this server’s outbound
AnnounceV2 requests and (b) verify proof bytes
received from peers in inbound AnnounceV2 requests. The default reject-all
implementation is overridden by transports that have a real notion of address
ownership (HTTPS via ACME cert, mem-transport via an empty marker, …).fn listen<'life0, 'async_trait>(
&'life0 self,
cancellation_token: CancellationToken,
handler: Sender<IncomingRequest>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for TcpTransportServer
impl !RefUnwindSafe for TcpTransportServer
impl Send for TcpTransportServer
impl Sync for TcpTransportServer
impl Unpin for TcpTransportServer
impl UnsafeUnpin for TcpTransportServer
impl !UnwindSafe for TcpTransportServer
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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