pub struct AclBuf(/* private fields */);Expand description
An owned, validated native Windows ACL packet.
Implementations§
Source§impl AclBuf
impl AclBuf
Sourcepub fn try_from_bytes(bytes: impl Into<Box<[u8]>>) -> Result<Self, AclError>
pub fn try_from_bytes(bytes: impl Into<Box<[u8]>>) -> Result<Self, AclError>
Takes ownership of a raw packet after validating it.
Sourcepub unsafe fn from_bytes_unchecked(bytes: impl Into<Box<[u8]>>) -> Self
pub unsafe fn from_bytes_unchecked(bytes: impl Into<Box<[u8]>>) -> Self
Sourcepub fn from_aces<I, A>(
aces: I,
revision: Option<AclRevision>,
) -> Result<Self, AclBuildError>
pub fn from_aces<I, A>( aces: I, revision: Option<AclRevision>, ) -> Result<Self, AclBuildError>
Builds an ACL from already-validated ACE packets.
Sourcepub fn into_boxed_bytes(self) -> Box<[u8]>
pub fn into_boxed_bytes(self) -> Box<[u8]>
Returns the owned packet bytes.
Methods from Deref<Target = Acl>§
Sourcepub fn revision(&self) -> AclRevision
pub fn revision(&self) -> AclRevision
Returns the ACL revision.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AclBuf
impl<'de> Deserialize<'de> for AclBuf
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AclBuf
impl StructuralPartialEq for AclBuf
Auto Trait Implementations§
impl Freeze for AclBuf
impl RefUnwindSafe for AclBuf
impl Send for AclBuf
impl Sync for AclBuf
impl Unpin for AclBuf
impl UnsafeUnpin for AclBuf
impl UnwindSafe for AclBuf
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