pub trait Action: Debug + Copy + Eq + Hash {
    fn from_u16(num: u16) -> Option<Self>;
    fn as_u16(&self) -> u16;

    fn max_body_size(_header: &Header<Self>) -> Option<u32> { ... }
}
Expand description

Important

the number zero is not allowed to be used

Required Methods§

should try to convert an u16 to the action

0 will never be passed as num

Provided Methods§

Implementors§