pub struct CTTimeout<'a> {
pub family: NfFamily,
pub table: Cow<'a, str>,
pub name: Cow<'a, str>,
pub handle: Option<u32>,
pub protocol: Option<CTHProto>,
pub state: Option<Cow<'a, str>>,
pub value: Option<u32>,
pub l3proto: Option<Cow<'a, str>>,
}Expand description
This object represents a named conntrack timeout policy.
You can use a ct timeout object to specify a connection tracking timeout policy for a particular flow.
Fields§
§family: NfFamilyThe table’s family.
table: Cow<'a, str>The table’s name.
name: Cow<'a, str>The ct timeout object’s name.
handle: Option<u32>The ct timeout object’s handle. In input, it is used by the delete command only.
protocol: Option<CTHProto>The ct timeout object’s layer 4 protocol.
state: Option<Cow<'a, str>>The connection state name, e.g. “established”, “syn_sent”, “close” or “close_wait”, for which the timeout value has to be updated.
value: Option<u32>The updated timeout value for the specified connection state.
l3proto: Option<Cow<'a, str>>The ct timeout object’s layer 3 protocol, e.g. “ip” or “ip6”.
Trait Implementations§
Source§impl Default for CTTimeout<'_>
Default ct timeout named “mycttimeout”
impl Default for CTTimeout<'_>
Default ct timeout named “mycttimeout”
Source§impl<'de, 'a> Deserialize<'de> for CTTimeout<'a>
impl<'de, 'a> Deserialize<'de> for CTTimeout<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> JsonSchema for CTTimeout<'a>
impl<'a> JsonSchema for CTTimeout<'a>
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl<'a> Eq for CTTimeout<'a>
impl<'a> StructuralPartialEq for CTTimeout<'a>
Auto Trait Implementations§
impl<'a> Freeze for CTTimeout<'a>
impl<'a> RefUnwindSafe for CTTimeout<'a>
impl<'a> Send for CTTimeout<'a>
impl<'a> Sync for CTTimeout<'a>
impl<'a> Unpin for CTTimeout<'a>
impl<'a> UnsafeUnpin for CTTimeout<'a>
impl<'a> UnwindSafe for CTTimeout<'a>
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