pub struct WasmTransportServer {}Trait Implementations§
Source§impl TransportServer for WasmTransportServer
impl TransportServer for WasmTransportServer
fn get_address(&self) -> &String
fn listen<'life0, 'async_trait>(
&'life0 self,
__arg1: CancellationToken,
__arg2: Sender<IncomingRequest>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
§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, …).Auto Trait Implementations§
impl Freeze for WasmTransportServer
impl RefUnwindSafe for WasmTransportServer
impl Send for WasmTransportServer
impl Sync for WasmTransportServer
impl Unpin for WasmTransportServer
impl UnsafeUnpin for WasmTransportServer
impl UnwindSafe for WasmTransportServer
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