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:
Max Inden
2022-08-28 10:51:49 +02:00
committed by GitHub
parent a3dec471c0
commit 247b5536d4
5 changed files with 12 additions and 111 deletions

View File

@ -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)]`.
///