pub struct P2pNetwork<SECURE> { /* private fields */ }Implementations§
Source§impl<SECURE: HandshakeProtocol> P2pNetwork<SECURE>
impl<SECURE: HandshakeProtocol> P2pNetwork<SECURE>
pub async fn new(cfg: P2pNetworkConfig<SECURE>) -> Result<Self>
pub fn create_service(&mut self, service_id: P2pServiceId) -> P2pService
pub fn requester(&mut self) -> P2pNetworkRequester
pub async fn recv(&mut self) -> Result<P2pNetworkEvent>
pub fn shutdown(&mut self)
Auto Trait Implementations§
impl<SECURE> Freeze for P2pNetwork<SECURE>
impl<SECURE> !RefUnwindSafe for P2pNetwork<SECURE>
impl<SECURE> Send for P2pNetwork<SECURE>
impl<SECURE> Sync for P2pNetwork<SECURE>
impl<SECURE> Unpin for P2pNetwork<SECURE>
impl<SECURE> !UnwindSafe for P2pNetwork<SECURE>
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