pub struct ObjectAttributes<'a> { /* private fields */ }
Expand description
A wrapper around OBJECT_ATTRIBUTES.
Implementations§
Source§impl<'a> ObjectAttributes<'a>
impl<'a> ObjectAttributes<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Constructs the default object attributes, with no name, root directory, attributes, or security information.
Sourcepub fn name<P>(&mut self, name: &'a P) -> &mut Selfwhere
P: AsUnicodeStringRef,
pub fn name<P>(&mut self, name: &'a P) -> &mut Selfwhere
P: AsUnicodeStringRef,
Sets the object name to name
.
Sourcepub fn root(&mut self, root: BorrowedHandle<'a>) -> &mut Self
pub fn root(&mut self, root: BorrowedHandle<'a>) -> &mut Self
Sets the root directory to root
.
Sourcepub fn attributes(&mut self, attributes: u32) -> &mut Self
pub fn attributes(&mut self, attributes: u32) -> &mut Self
Sets the attributes to attributes
.
Sourcepub fn security_descriptor(&mut self, sd: &'a SecurityDescriptor) -> &mut Self
pub fn security_descriptor(&mut self, sd: &'a SecurityDescriptor) -> &mut Self
Sets the security descriptor to sd
.
Trait Implementations§
Source§impl AsRef<OBJECT_ATTRIBUTES> for ObjectAttributes<'_>
impl AsRef<OBJECT_ATTRIBUTES> for ObjectAttributes<'_>
Auto Trait Implementations§
impl<'a> Freeze for ObjectAttributes<'a>
impl<'a> RefUnwindSafe for ObjectAttributes<'a>
impl<'a> !Send for ObjectAttributes<'a>
impl<'a> !Sync for ObjectAttributes<'a>
impl<'a> Unpin for ObjectAttributes<'a>
impl<'a> UnwindSafe for ObjectAttributes<'a>
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