pub enum Kind {
State(RlimitState),
Config(RlimitConfig),
AccountLimits(RlimitAccountLimits),
AccountUsage(RlimitAccountUsage),
}
Variants§
State(RlimitState)
Config(RlimitConfig)
AccountLimits(RlimitAccountLimits)
AccountUsage(RlimitAccountUsage)
Implementations§
source§impl Kind
impl Kind
sourcepub fn merge<B>(
field: &mut Option<Kind>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<Kind>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.