pub struct SecurityAttributes { /* private fields */ }
Expand description
Security attributes.
Implementations§
Source§impl SecurityAttributes
impl SecurityAttributes
Sourcepub fn empty() -> SecurityAttributes
pub fn empty() -> SecurityAttributes
New default security attributes.
Sourcepub fn allow_everyone_connect(&self) -> Result<SecurityAttributes, Error>
pub fn allow_everyone_connect(&self) -> Result<SecurityAttributes, Error>
New default security attributes that allow everyone to connect.
Sourcepub fn set_mode(self, _mode: u32) -> Result<SecurityAttributes, Error>
pub fn set_mode(self, _mode: u32) -> 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 default security attributes that allow everyone to create.
Trait Implementations§
impl Send for SecurityAttributes
Auto Trait Implementations§
impl Freeze for SecurityAttributes
impl RefUnwindSafe 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