[−][src]Struct libp2prs_swarm::protocol_handler::DummyProtocolHandler
Dummy protocol handler, test purpose
Implementation of ProtocolHandler
that doesn't handle anything.
Implementations
impl DummyProtocolHandler
[src]
Trait Implementations
impl Clone for DummyProtocolHandler
[src]
pub fn clone(&self) -> DummyProtocolHandler
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for DummyProtocolHandler
[src]
pub fn default() -> DummyProtocolHandler
[src]
impl Notifiee for DummyProtocolHandler
[src]
pub fn connected(&mut self, _conn: &mut Connection)
[src]
pub fn disconnected(&mut self, _conn: &mut Connection)
[src]
pub fn identified(&mut self, _peer: PeerId)
[src]
pub fn address_changed(&mut self, _addrs: Vec<Multiaddr>)
[src]
impl ProtocolHandler for DummyProtocolHandler
[src]
pub fn handle<'life0, 'async_trait>(
&'life0 mut self,
stream: Substream,
info: Self::Info
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
stream: Substream,
info: Self::Info
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
pub fn box_clone(&self) -> IProtocolHandler
[src]
impl UpgradeInfo for DummyProtocolHandler
[src]
type Info = ProtocolId
Opaque type representing a negotiable protocol.
pub fn protocol_info(&self) -> Vec<Self::Info>
[src]
Auto Trait Implementations
impl RefUnwindSafe for DummyProtocolHandler
[src]
impl Send for DummyProtocolHandler
[src]
impl Sync for DummyProtocolHandler
[src]
impl Unpin for DummyProtocolHandler
[src]
impl UnwindSafe for DummyProtocolHandler
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,