pub fn rpc_response_limits<T: EthSpec>(&self) -> RpcLimits {
        match self.message_name {
            Protocol::Status => RpcLimits::new(
                <StatusMessage as Encode>::ssz_fixed_len(),
                <StatusMessage as Encode>::ssz_fixed_len(),
            ),
            Protocol::Goodbye => RpcLimits::new(0, 0), // Goodbye request has no response
            Protocol::BlocksByRange => {
                RpcLimits::new(*SIGNED_BEACON_BLOCK_MIN, *SIGNED_BEACON_BLOCK_MAX)
            }
            Protocol::BlocksByRoot => {
                RpcLimits::new(*SIGNED_BEACON_BLOCK_MIN, *SIGNED_BEACON_BLOCK_MAX)
            }
            Protocol::Ping => RpcLimits::new(
                <Ping as Encode>::ssz_fixed_len(),
                <Ping as Encode>::ssz_fixed_len(),
            ),
            Protocol::MetaData => RpcLimits::new(
                <MetaData<T> as Encode>::ssz_fixed_len(),
                <MetaData<T> as Encode>::ssz_fixed_len(),
            ),
        }
    }
/// Returns min and max size for messages of given protocol id responses.
Returns min and max size for messages of given protocol id responses.
Returns min and max size for messages of given protocol id responses .
pub fn rpc_response_limits<T: EthSpec>(&self) -> RpcLimits {
        match self.message_name {
            Protocol::Status => RpcLimits::new(
                <StatusMessage as Encode>::ssz_fixed_len(),
                <StatusMessage as Encode>::ssz_fixed_len(),
            ),
            Protocol::Goodbye => RpcLimits::new(0, 0), // Goodbye request has no response
            Protocol::BlocksByRange => {
                RpcLimits::new(*SIGNED_BEACON_BLOCK_MIN, *SIGNED_BEACON_BLOCK_MAX)
            }
            Protocol::BlocksByRoot => {
                RpcLimits::new(*SIGNED_BEACON_BLOCK_MIN, *SIGNED_BEACON_BLOCK_MAX)
            }
            Protocol::Ping => RpcLimits::new(
                <Ping as Encode>::ssz_fixed_len(),
                <Ping as Encode>::ssz_fixed_len(),
            ),
            Protocol::MetaData => RpcLimits::new(
                <MetaData<T> as Encode>::ssz_fixed_len(),
                <MetaData<T> as Encode>::ssz_fixed_len(),
            ),
        }
    }
pub fn rpc_response_limits < T : EthSpec > ( & self ) -> RpcLimits { match self . message_name { Protocol :: Status => RpcLimits :: new ( < StatusMessage as Encode > :: ssz_fixed_len ( ) , < StatusMessage as Encode > :: ssz_fixed_len ( ) , ) , Protocol :: Goodbye => RpcLimits :: new ( 0 , 0 ) , // Goodbye request has no response Protocol :: BlocksByRange => { RpcLimits :: new ( * SIGNED_BEACON_BLOCK_MIN , * SIGNED_BEACON_BLOCK_MAX ) } Protocol :: BlocksByRoot => { RpcLimits :: new ( * SIGNED_BEACON_BLOCK_MIN , * SIGNED_BEACON_BLOCK_MAX ) } Protocol :: Ping => RpcLimits :: new ( < Ping as Encode > :: ssz_fixed_len ( ) , < Ping as Encode > :: ssz_fixed_len ( ) , ) , Protocol :: MetaData => RpcLimits :: new ( < MetaData < T > as Encode > :: ssz_fixed_len ( ) , < MetaData < T > as Encode > :: ssz_fixed_len ( ) , ) , } }
Returns min and max size for messages of given protocol id responses.
Returns min and max size for messages of given protocol id responses .
&self