Struct jsonrpc_ipc_server::SecurityAttributes
source · pub struct SecurityAttributes;
Expand description
A NOOP struct for bringing the API between Windows and Unix up to parity. To set permissions
properly on Unix, you can just use std::os::unix::fs::PermissionsExt
.
Implementations
sourceimpl SecurityAttributes
impl SecurityAttributes
sourcepub fn empty() -> SecurityAttributes
pub fn empty() -> SecurityAttributes
New default security attributes.
sourcepub fn allow_everyone_connect() -> Result<SecurityAttributes, Error>
pub fn allow_everyone_connect() -> Result<SecurityAttributes, Error>
New security attributes that allow everyone to connect.
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more