mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-26 16:21:39 +00:00
swarm-derive/: Remove support for custom poll method (#2841)
With the removal of `NetworkBehaviourEventProcess` there is no more need for a custom poll method.
This commit is contained in:
@ -118,10 +118,6 @@ pub(crate) type THandlerOutEvent<THandler> =
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// Optionally one can provide a custom `poll` function through the `#[behaviour(poll_method =
|
||||
/// "poll")]` attribute. This function must have the same signature as the [`NetworkBehaviour#poll`]
|
||||
/// function and will be called last within the generated [`NetworkBehaviour`] implementation.
|
||||
///
|
||||
/// Struct members that don't implement [`NetworkBehaviour`] must be annotated with
|
||||
/// `#[behaviour(ignore)]`.
|
||||
///
|
||||
|
Reference in New Issue
Block a user