pub struct IptReplaceParser {
pub replace_info: ReplaceInfo,
/* private fields */
}Expand description
A parser for both ipt_replace and ip6t_replace, and its subsequent entries.
Fields§
§replace_info: ReplaceInfoTable metadata passed through ipt_replace or ip6t_replace.
Implementations§
Source§impl IptReplaceParser
impl IptReplaceParser
pub fn entries_bytes(&self) -> &[u8] ⓘ
pub fn get_namespace_id(&self) -> NamespaceId
pub fn table_id(&self) -> TableId
pub fn get_namespace(&self) -> Namespace
Sourcepub fn is_valid_offset(&self, offset: usize) -> bool
pub fn is_valid_offset(&self, offset: usize) -> bool
Returns whether offset points to a valid entry. Parser can only know this after reading
all entries in bytes. Panics if the parser has not finished.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IptReplaceParser
impl RefUnwindSafe for IptReplaceParser
impl Send for IptReplaceParser
impl Sync for IptReplaceParser
impl Unpin for IptReplaceParser
impl UnwindSafe for IptReplaceParser
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.