pub struct IpTable {
pub parser: IptReplaceParser,
pub namespace: Namespace,
pub routines: Vec<Routine>,
pub rules: Vec<Rule>,
}Fields§
§parser: IptReplaceParserThe parser used to translate Linux data into fuchsia.net.filter resources. Included here as we don’t have the reverse translation implemented yet. TODO(b/307908515): Remove once we can recreate Linux structure from net filter resources.
namespace: Namespacenamespace, routines and rules make up an IPTable’s representation
in fuchsia.net.filter’s API, where Namespace stores metadata about the table
like its name, Routine correspond to a chain on the table, and Rule is a rule
on a chain. We can update the table state of the system by dropping the Namespace,
then recreating the Namespace, Routines, and Rules in that order.
routines: Vec<Routine>§rules: Vec<Rule>Implementations§
Source§impl IpTable
impl IpTable
pub fn from_ipt_replace( context: &mut impl IptReplaceContext, bytes: Vec<u8>, ) -> Result<Self, IpTableParseError>
pub fn from_ip6t_replace( context: &mut impl IptReplaceContext, bytes: Vec<u8>, ) -> Result<Self, IpTableParseError>
pub fn into_changes(self) -> impl Iterator<Item = Change>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IpTable
impl RefUnwindSafe for IpTable
impl Send for IpTable
impl Sync for IpTable
impl Unpin for IpTable
impl UnwindSafe for IpTable
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, 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.