pub fn rpc_beacon_block(
        block: Box<SignedBeaconBlock<T::EthSpec>>,
    ) -> (Self, BlockResultReceiver<T::EthSpec>) {
        let (result_tx, result_rx) = oneshot::channel();
        let event = Self {
            drop_during_sync: false,
            work: Work::RpcBlock { block, result_tx },
        };
        (event, result_rx)
    }
/// Create a new `Work` event for some block, where the result from computation (if any) is
/// sent to the other side of `result_tx`.
Create a new `Work` event for some block, where the result from computation (if any) is
sent to the other side of `result_tx`.
Create a new ` Work ` event for some block where the result from computation ( if any ) is sent to the other side of ` result_tx ` .
pub fn rpc_beacon_block(
        block: Box<SignedBeaconBlock<T::EthSpec>>,
    ) -> (Self, BlockResultReceiver<T::EthSpec>) {
        let (result_tx, result_rx) = oneshot::channel();
        let event = Self {
            drop_during_sync: false,
            work: Work::RpcBlock { block, result_tx },
        };
        (event, result_rx)
    }
pub fn rpc_beacon_block ( block : Box < SignedBeaconBlock < T :: EthSpec > > , ) -> ( Self , BlockResultReceiver < T :: EthSpec > ) { let ( result_tx , result_rx ) = oneshot :: channel ( ) ; let event = Self { drop_during_sync : false , work : Work :: RpcBlock { block , result_tx } , } ; ( event , result_rx ) }
Create a new `Work` event for some block, where the result from computation (if any) is
sent to the other side of `result_tx`.
Create a new ` Work ` event for some block where the result from computation ( if any ) is sent to the other side of ` result_tx ` .
block
Box<SignedBeaconBlock<T::EthSpec>>