Enum nng::options::transport::ipc::Permissions [−][src]
pub enum Permissions {}
Expand description
Configures the permissions used on the UNIX domain socket.
This value represents the normal permission bits of the file. The default is
system-specific but is most often 0644
. Note that not all systems will respect
this value. In particular, illumos and Solaris are known to ignore these permission
settings. It is also important to note that the umask of the process is not
applied to these bits.
The best practice for limiting access is to place the socket in a directory writable only by the server, and only readable and searchable by clients. All mainstream POSIX systems will fail to permit a client to connect to a socket located in a directory for which the client lacks search (execute) permission.
Also consider using the PeerId
property from within the pipe notify callback to
validate peer credentials.
Support
- Listeners that are using the IPC protocol.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Permissions
impl Send for Permissions
impl Sync for Permissions
impl Unpin for Permissions
impl UnwindSafe for Permissions
Blanket Implementations
Mutably borrows from an owned value. Read more