Struct tink_core::keyset::BinaryWriter
source · [−]pub struct BinaryWriter<T: Write> { /* private fields */ }
Expand description
BinaryWriter
serializes a keyset into binary proto format.
Implementations
sourceimpl<T: Write> BinaryWriter<T>
impl<T: Write> BinaryWriter<T>
sourcepub fn new(w: T) -> Self
pub fn new(w: T) -> Self
Return a new BinaryWriter
that will write to w
.
Trait Implementations
sourceimpl<T: Write> Writer for BinaryWriter<T>
impl<T: Write> Writer for BinaryWriter<T>
sourcefn write(&mut self, keyset: &Keyset) -> Result<(), TinkError>
fn write(&mut self, keyset: &Keyset) -> Result<(), TinkError>
Write the keyset to the underlying std::io::Write
.
sourcefn write_encrypted(&mut self, keyset: &EncryptedKeyset) -> Result<(), TinkError>
fn write_encrypted(&mut self, keyset: &EncryptedKeyset) -> Result<(), TinkError>
Write the encrypted keyset to the underlying std::io::Write
.
Auto Trait Implementations
impl<T> RefUnwindSafe for BinaryWriter<T> where
T: RefUnwindSafe,
impl<T> Send for BinaryWriter<T> where
T: Send,
impl<T> Sync for BinaryWriter<T> where
T: Sync,
impl<T> Unpin for BinaryWriter<T> where
T: Unpin,
impl<T> UnwindSafe for BinaryWriter<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more