pub struct PayloadAuthSlice<'a, P: ?Sized>(pub(crate) &'a [u8], pub(crate) PhantomData<P>);
Expand description
Borrowed binary representation of a payload auth
Tuple Fields§
§0: &'a [u8]
§1: PhantomData<P>
Implementations§
source§impl<'a, P: Payload> PayloadAuthSlice<'a, P>
impl<'a, P: Payload> PayloadAuthSlice<'a, P>
pub fn into_payload_auth(self) -> P::Auth
source§impl<'a, P: Payload> PayloadAuthSlice<'a, P>
impl<'a, P: Payload> PayloadAuthSlice<'a, P>
pub fn to_owned(&self) -> PayloadAuthData<P>
Trait Implementations§
source§impl<'a, P: ?Sized> Clone for PayloadAuthSlice<'a, P>
impl<'a, P: ?Sized> Clone for PayloadAuthSlice<'a, P>
source§fn clone(&self) -> PayloadAuthSlice<'a, P>
fn clone(&self) -> PayloadAuthSlice<'a, P>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a, P: ?Sized> RefUnwindSafe for PayloadAuthSlice<'a, P>where P: RefUnwindSafe,
impl<'a, P: ?Sized> Send for PayloadAuthSlice<'a, P>where P: Send,
impl<'a, P: ?Sized> Sync for PayloadAuthSlice<'a, P>where P: Sync,
impl<'a, P: ?Sized> Unpin for PayloadAuthSlice<'a, P>where P: Unpin,
impl<'a, P: ?Sized> UnwindSafe for PayloadAuthSlice<'a, P>where P: 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