pub struct ProbeNetRequest {
pub unix_target: String,
pub tcp4_target: String,
pub tcp6_target: String,
}Expand description
Request body for the probe-net mode.
Every target is one the parent controls and holds reachable while the probe runs, so a connection that fails from inside the jail is evidence of the jail and not of an unreachable address. From an unjailed process every leg would succeed.
Fields§
§unix_target: StringA Unix socket target the parent listens on outside the jail. An abstract name on Linux, a filesystem path elsewhere.
tcp4_target: StringAn IPv4 TCP address the parent listens on, such as
127.0.0.1:49152.
tcp6_target: StringAn IPv6 TCP address the parent listens on, such as
[::1]:49152.
Trait Implementations§
Source§impl Clone for ProbeNetRequest
impl Clone for ProbeNetRequest
Source§fn clone(&self) -> ProbeNetRequest
fn clone(&self) -> ProbeNetRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProbeNetRequest
impl Debug for ProbeNetRequest
Source§impl<'de> Deserialize<'de> for ProbeNetRequest
impl<'de> Deserialize<'de> for ProbeNetRequest
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
Auto Trait Implementations§
impl Freeze for ProbeNetRequest
impl RefUnwindSafe for ProbeNetRequest
impl Send for ProbeNetRequest
impl Sync for ProbeNetRequest
impl Unpin for ProbeNetRequest
impl UnsafeUnpin for ProbeNetRequest
impl UnwindSafe for ProbeNetRequest
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 more