pub struct QuicRelayer<SECURE, VALIDATE, REQ: ClusterRequest, TSH> { /* private fields */ }Implementations§
Source§impl<SECURE, VALIDATE, REQ, TSH> QuicRelayer<SECURE, VALIDATE, REQ, TSH>where
SECURE: HandshakeProtocol,
VALIDATE: ClusterValidator<REQ>,
REQ: DeserializeOwned + Send + Sync + 'static + ClusterRequest,
TSH: TunnelServiceHandle<REQ::Context> + Send + Sync + 'static,
impl<SECURE, VALIDATE, REQ, TSH> QuicRelayer<SECURE, VALIDATE, REQ, TSH>where
SECURE: HandshakeProtocol,
VALIDATE: ClusterValidator<REQ>,
REQ: DeserializeOwned + Send + Sync + 'static + ClusterRequest,
TSH: TunnelServiceHandle<REQ::Context> + Send + Sync + 'static,
pub async fn new( cfg: QuicRelayerConfig<SECURE, TSH>, validate: VALIDATE, ) -> Result<Self>
pub fn p2p(&mut self) -> &mut P2pNetwork<SECURE>
pub async fn recv(&mut self) -> Result<QuicRelayerEvent>
Auto Trait Implementations§
impl<SECURE, VALIDATE, REQ, TSH> !Freeze for QuicRelayer<SECURE, VALIDATE, REQ, TSH>
impl<SECURE, VALIDATE, REQ, TSH> !RefUnwindSafe for QuicRelayer<SECURE, VALIDATE, REQ, TSH>
impl<SECURE, VALIDATE, REQ, TSH> Send for QuicRelayer<SECURE, VALIDATE, REQ, TSH>
impl<SECURE, VALIDATE, REQ, TSH> Sync for QuicRelayer<SECURE, VALIDATE, REQ, TSH>
impl<SECURE, VALIDATE, REQ, TSH> Unpin for QuicRelayer<SECURE, VALIDATE, REQ, TSH>
impl<SECURE, VALIDATE, REQ, TSH> !UnwindSafe for QuicRelayer<SECURE, VALIDATE, REQ, TSH>
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