pub struct BinaryReader<T: Read> { /* private fields */ }Expand description
BinaryReader deserializes a keyset from binary proto format.
Implementations§
Source§impl<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§
Source§impl<T: Read> Reader for BinaryReader<T>
impl<T: Read> Reader for BinaryReader<T>
Source§fn read(&mut self) -> Result<Keyset, TinkError>
fn read(&mut self) -> Result<Keyset, TinkError>
Return a (cleartext) Keyset object from the underlying
std::io::Read.
Source§fn 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> Freeze for BinaryReader<T>where
T: Freeze,
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§
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