pub struct SecurityAttributes { /* private fields */ }
Expand description
Socket permissions and ownership on UNIX
Implementations§
Source§impl SecurityAttributes
impl SecurityAttributes
Sourcepub fn empty() -> Self
pub fn empty() -> Self
New default security attributes. These only allow access by the process’s own user and the system administrator.
Sourcepub fn allow_everyone_connect(self) -> Result<Self>
pub fn allow_everyone_connect(self) -> Result<Self>
New security attributes that allow everyone to connect.
Sourcepub fn allow_everyone_create() -> Result<Self>
pub fn allow_everyone_create() -> Result<Self>
New security attributes that allow everyone to create.
This does not work on unix, where it is equivalent to
SecurityAttributes::allow_everyone_connect
.
Auto Trait Implementations§
impl Freeze for SecurityAttributes
impl RefUnwindSafe for SecurityAttributes
impl Send for SecurityAttributes
impl Sync for SecurityAttributes
impl Unpin for SecurityAttributes
impl UnwindSafe for SecurityAttributes
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