pub struct ReplaceInfo {
pub table_id: TableId,
pub num_entries: usize,
pub size: usize,
pub valid_hooks: NfIpHooks,
pub hook_entry: [c_uint; 5],
pub underflow: [c_uint; 5],
pub num_counters: c_uint,
}Expand description
Metadata passed by iptables when updating a table.
Describes the subsequent buffer of size bytes, containing num_entries Entries that describe
chain definitions, rule specifications, and end of input.
IPv4 and IPv6 tables have the same metadata but uses different Linux structs: ipt_replace for
IPv4, and ip6t_replace for IPv6.
Fields§
§table_id: TableIdThe table to be replaced.
num_entries: usizeNumber of entries defined on the table.
size: usizeSize of entries in bytes.
valid_hooks: NfIpHooksBitmap of which installed chains are on the table.
hook_entry: [c_uint; 5]Byte offsets of the first entry of each installed chain.
underflow: [c_uint; 5]Byte offsets of the policy of each installed chain.
num_counters: c_uintUnused field. Number of counters.
Trait Implementations§
Source§impl Clone for ReplaceInfo
impl Clone for ReplaceInfo
Source§fn clone(&self) -> ReplaceInfo
fn clone(&self) -> ReplaceInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReplaceInfo
impl Debug for ReplaceInfo
Source§impl TryFrom<ip6t_replace> for ReplaceInfo
impl TryFrom<ip6t_replace> for ReplaceInfo
Source§type Error = IpTableParseError
type Error = IpTableParseError
The type returned in the event of a conversion error.
Source§impl TryFrom<ipt_replace> for ReplaceInfo
impl TryFrom<ipt_replace> for ReplaceInfo
Source§type Error = IpTableParseError
type Error = IpTableParseError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ReplaceInfo
impl RefUnwindSafe for ReplaceInfo
impl Send for ReplaceInfo
impl Sync for ReplaceInfo
impl Unpin for ReplaceInfo
impl UnwindSafe for ReplaceInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.