Struct libp2p_swarm::ListenOpts
source · pub struct ListenOpts { /* private fields */ }
Implementations§
source§impl ListenOpts
impl ListenOpts
pub fn new(address: Multiaddr) -> ListenOpts
sourcepub fn listener_id(&self) -> ListenerId
pub fn listener_id(&self) -> ListenerId
Get the ListenerId
of this listen attempt
Trait Implementations§
source§impl Debug for ListenOpts
impl Debug for ListenOpts
Auto Trait Implementations§
impl RefUnwindSafe for ListenOpts
impl Send for ListenOpts
impl Sync for ListenOpts
impl Unpin for ListenOpts
impl UnwindSafe for ListenOpts
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