pub struct SecurityAttributes { /* private fields */ }Expand description
Socket permissions and ownership on UNIX
Implementations§
Source§impl SecurityAttributes
impl SecurityAttributes
Sourcepub fn empty() -> SecurityAttributes
pub fn empty() -> SecurityAttributes
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<SecurityAttributes, Error>
pub fn allow_everyone_connect(self) -> Result<SecurityAttributes, Error>
New security attributes that allow everyone to connect.
Sourcepub fn set_mode(self, mode: u16) -> Result<SecurityAttributes, Error>
pub fn set_mode(self, mode: u16) -> Result<SecurityAttributes, Error>
Set a custom permission on the socket
Sourcepub fn allow_everyone_create() -> Result<SecurityAttributes, Error>
pub fn allow_everyone_create() -> Result<SecurityAttributes, Error>
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 UnsafeUnpin 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