Struct tink_core::keyset::BinaryReader
source · [−]pub struct BinaryReader<T: Read> { /* private fields */ }
Expand description
BinaryReader
deserializes a keyset from binary proto format.
Implementations
sourceimpl<T: Read> BinaryReader<T>
impl<T: Read> BinaryReader<T>
sourcepub fn new(r: T) -> Self
pub fn new(r: T) -> Self
Return a new BinaryReader
that will read from r
.
Trait Implementations
sourceimpl<T: Read> Reader for BinaryReader<T>
impl<T: Read> Reader for BinaryReader<T>
sourcefn read(&mut self) -> Result<Keyset, TinkError>
fn read(&mut self) -> Result<Keyset, TinkError>
Return a (cleartext) Keyset
object from the underlying
std::io::Read
.
sourcefn read_encrypted(&mut self) -> Result<EncryptedKeyset, TinkError>
fn read_encrypted(&mut self) -> Result<EncryptedKeyset, TinkError>
Return an EncryptedKeyset
object from the underlying
std::io::Read
.
Auto Trait Implementations
impl<T> RefUnwindSafe for BinaryReader<T> where
T: RefUnwindSafe,
impl<T> Send for BinaryReader<T> where
T: Send,
impl<T> Sync for BinaryReader<T> where
T: Sync,
impl<T> Unpin for BinaryReader<T> where
T: Unpin,
impl<T> UnwindSafe for BinaryReader<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