pub enum UnixSocketOp {
Connect,
Bind,
Send,
}Expand description
Operation being queried against a UnixSocketCapability.
Kept distinct from UnixSocketMode so the grant-side (what a
capability permits) and the query-side (what the caller is about to
do) are not conflated. The supervisor’s seccomp-notify handler maps
SYS_CONNECT -> Connect, SYS_BIND -> Bind,
SYS_SENDTO/SYS_SENDMSG/SYS_SENDMMSG -> Send.
Variants§
Connect
About to call connect(2).
Bind
About to call bind(2).
Send
About to call sendto(2), sendmsg(2), or sendmmsg(2) with a
destination address.
Datagram AF_UNIX sockets use sendto/sendmsg/sendmmsg to specify the
target per-message instead of calling connect() first. This
variant covers those datagram sends (issue #1089).
Trait Implementations§
Source§impl Clone for UnixSocketOp
impl Clone for UnixSocketOp
Source§fn clone(&self) -> UnixSocketOp
fn clone(&self) -> UnixSocketOp
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 moreimpl Copy for UnixSocketOp
Source§impl Debug for UnixSocketOp
impl Debug for UnixSocketOp
Source§impl Display for UnixSocketOp
impl Display for UnixSocketOp
impl Eq for UnixSocketOp
Source§impl PartialEq for UnixSocketOp
impl PartialEq for UnixSocketOp
Source§fn eq(&self, other: &UnixSocketOp) -> bool
fn eq(&self, other: &UnixSocketOp) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UnixSocketOp
Auto Trait Implementations§
impl Freeze for UnixSocketOp
impl RefUnwindSafe for UnixSocketOp
impl Send for UnixSocketOp
impl Sync for UnixSocketOp
impl Unpin for UnixSocketOp
impl UnsafeUnpin for UnixSocketOp
impl UnwindSafe for UnixSocketOp
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.