pub struct SecurityAttributes(/* private fields */);Expand description
Permissions and ownership for the IPC connection.
Implementations§
Source§impl SecurityAttributes
impl SecurityAttributes
Sourcepub fn allow_everyone_connect() -> Result<Self>
pub fn allow_everyone_connect() -> Result<Self>
New default security attributes that allow everyone to connect.
On Windows, this is equivalent to SecurityAttributes::allow_everyone_create.
Sourcepub fn mode(self, mode: u16) -> Result<Self>
pub fn mode(self, mode: u16) -> Result<Self>
Set a custom permission on the socket.
Has no effect on Windows.
Sourcepub fn allow_everyone_create() -> Result<Self>
pub fn allow_everyone_create() -> Result<Self>
New default security attributes that allow everyone to create.
On Windows, this is equivalent to SecurityAttributes::allow_everyone_connect.
Trait Implementations§
Source§impl Clone for SecurityAttributes
impl Clone for SecurityAttributes
Source§fn clone(&self) -> SecurityAttributes
fn clone(&self) -> SecurityAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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