pub struct RewriteTable {
pub table_full: bool,
pub generation: u8,
pub entries: Vec<RewriteEntry>,
}Expand description
Decoded RESP(REWRITE) (§4.17): the rewrite table summary.
generation bumps on a table change and on a clear of a non-empty table. A reset, detach, link
loss, re-clone or the opt-in going off empties the table and returns it to 0. The crate ignores
it: its keepalive re-sends every held rule.
Fields§
§table_full: boolThe box refused the last new rule or overwrite for room: all 32 entries in use, or the 2048-byte payload pool full. The next table change, or a clear, resets it.
generation: u8Generation counter (see the type docs).
entries: Vec<RewriteEntry>One row per installed rule, in installation order (the box’s order). The box selects a match most specific first, whatever its order here.
Trait Implementations§
Source§impl Clone for RewriteTable
impl Clone for RewriteTable
Source§impl Debug for RewriteTable
impl Debug for RewriteTable
Source§impl Default for RewriteTable
impl Default for RewriteTable
impl Eq for RewriteTable
Source§impl PartialEq for RewriteTable
impl PartialEq for RewriteTable
impl StructuralPartialEq for RewriteTable
Auto Trait Implementations§
impl Freeze for RewriteTable
impl RefUnwindSafe for RewriteTable
impl Send for RewriteTable
impl Sync for RewriteTable
impl Unpin for RewriteTable
impl UnsafeUnpin for RewriteTable
impl UnwindSafe for RewriteTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more