Struct jsonrpc_ipc_server::SecurityAttributes
source · [−]pub struct SecurityAttributes { /* private fields */ }
Expand description
Socket permissions and ownership on UNIX
Implementations
sourceimpl 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 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.
Auto Trait Implementations
impl RefUnwindSafe for SecurityAttributes
impl Send for SecurityAttributes
impl Sync for SecurityAttributes
impl Unpin for SecurityAttributes
impl UnwindSafe for SecurityAttributes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more