pub struct Code { /* private fields */ }Implementations§
Source§impl Code
impl Code
pub fn generate() -> Result<Self>
pub fn named(cluster: &str, node: &str) -> Result<Self>
pub fn names(&self) -> Option<(&str, &str)>
pub fn parse(value: &str) -> Result<Self>
pub fn expose(&self) -> Zeroizing<String>
pub fn id(&self) -> String
pub fn seal( &self, account: &str, cluster: &str, created: u64, response: bool, plaintext: &[u8], ) -> Result<String>
pub fn open( &self, account: &str, cluster: &str, created: u64, response: bool, value: &str, ) -> Result<Zeroizing<Vec<u8>>>
Auto Trait Implementations§
impl Forget for Code
impl Freeze for Code
impl Move for Code
impl RefUnwindSafe for Code
impl Send for Codewhere
RawVecInner: Send,
impl Sync for Codewhere
RawVecInner: Sync,
impl Unpin for Code
impl UnsafeUnpin for Code
impl UnwindSafe for Codewhere
RawVecInner: 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