pub struct ResumeKeyBytes {
pub bytes: Vec<u8>,
}Expand description
Fixed-size resume key bytes, CBOR-serializable.
Fields§
§bytes: Vec<u8>Implementations§
Source§impl ResumeKeyBytes
impl ResumeKeyBytes
pub fn from_key(key: &SessionResumeKey) -> Self
pub fn to_key(&self) -> Option<SessionResumeKey>
Trait Implementations§
Source§impl Clone for ResumeKeyBytes
impl Clone for ResumeKeyBytes
Source§fn clone(&self) -> ResumeKeyBytes
fn clone(&self) -> ResumeKeyBytes
Returns a duplicate 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 moreSource§impl Debug for ResumeKeyBytes
impl Debug for ResumeKeyBytes
Auto Trait Implementations§
impl Freeze for ResumeKeyBytes
impl RefUnwindSafe for ResumeKeyBytes
impl Send for ResumeKeyBytes
impl Sync for ResumeKeyBytes
impl Unpin for ResumeKeyBytes
impl UnsafeUnpin for ResumeKeyBytes
impl UnwindSafe for ResumeKeyBytes
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