pub struct SyncKey(/* private fields */);Expand description
32-byte pre-shared key for encrypted sync transport.
Implementations§
Source§impl SyncKey
impl SyncKey
Sourcepub fn from_bytes(bytes: [u8; 32]) -> SyncKey
pub fn from_bytes(bytes: [u8; 32]) -> SyncKey
Create from raw bytes.
Sourcepub fn from_base64(s: &str) -> Result<SyncKey, SyncKeyError>
pub fn from_base64(s: &str) -> Result<SyncKey, SyncKeyError>
Decode from base64.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SyncKey
impl RefUnwindSafe for SyncKey
impl Send for SyncKey
impl Sync for SyncKey
impl Unpin for SyncKey
impl UnsafeUnpin for SyncKey
impl UnwindSafe for SyncKey
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