pub struct EmptyData<__ContainerType>(/* private fields */);Expand description
A data lense to manipulate byte slices.
sid: 4 bytesctr: 8 bytesauth: sodium::AEAD_TAG_LEN bytes
Implementations§
Source§impl<'a, __ContainerType> EmptyData<&'a __ContainerType>
impl<'a, __ContainerType> EmptyData<&'a __ContainerType>
Source§impl<'a, __ContainerType> EmptyData<&'a mut __ContainerType>
impl<'a, __ContainerType> EmptyData<&'a mut __ContainerType>
Sourcepub fn auth(&self) -> &__ContainerType::Output
pub fn auth(&self) -> &__ContainerType::Output
Empty encrypted message (just an auth tag)
[sodium :: AEAD_TAG_LEN] bytes long
Sourcepub fn until_auth(&self) -> &__ContainerType::Output
pub fn until_auth(&self) -> &__ContainerType::Output
The bytes until the [Self :: auth] field
Sourcepub fn auth_mut(&mut self) -> &mut __ContainerType::Output
pub fn auth_mut(&mut self) -> &mut __ContainerType::Output
Empty encrypted message (just an auth tag)
[sodium :: AEAD_TAG_LEN] bytes long
Sourcepub fn all_bytes(&self) -> &__ContainerType::Output
pub fn all_bytes(&self) -> &__ContainerType::Output
View into all bytes belonging to this Lense
Sourcepub fn all_bytes_mut(&mut self) -> &mut __ContainerType::Output
pub fn all_bytes_mut(&mut self) -> &mut __ContainerType::Output
View into all bytes belonging to this Lense
Trait Implementations§
Auto Trait Implementations§
impl<__ContainerType> Freeze for EmptyData<__ContainerType>where
__ContainerType: Freeze,
impl<__ContainerType> RefUnwindSafe for EmptyData<__ContainerType>where
__ContainerType: RefUnwindSafe,
impl<__ContainerType> Send for EmptyData<__ContainerType>where
__ContainerType: Send,
impl<__ContainerType> Sync for EmptyData<__ContainerType>where
__ContainerType: Sync,
impl<__ContainerType> Unpin for EmptyData<__ContainerType>where
__ContainerType: Unpin,
impl<__ContainerType> UnwindSafe for EmptyData<__ContainerType>where
__ContainerType: UnwindSafe,
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