Struct encryption::EncrypterWriter [−][src]
Fields
writer: Option<W>
crypter: OCrypter
block_size: usize
Implementations
impl<W: Write> EncrypterWriter<W>
[src][−]
pub fn new(
writer: W,
method: EncryptionMethod,
key: &[u8],
iv: Iv
) -> Result<EncrypterWriter<W>>
[src]
writer: W,
method: EncryptionMethod,
key: &[u8],
iv: Iv
) -> Result<EncrypterWriter<W>>
pub fn finalize(&mut self) -> W
[src][−]
Finalize the internal writer and encrypter and return the writer.
fn do_finalize(&mut self) -> Option<W>
[src]
impl EncrypterWriter<File>
[src][−]
Trait Implementations
impl<W: Write> Drop for EncrypterWriter<W>
[src][+]
impl<W: Write> Write for EncrypterWriter<W>
[src][+]
Auto Trait Implementations
impl<W> RefUnwindSafe for EncrypterWriter<W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
impl<W> Send for EncrypterWriter<W> where
W: Send,
W: Send,
impl<W> Sync for EncrypterWriter<W> where
W: Sync,
W: Sync,
impl<W> Unpin for EncrypterWriter<W> where
W: Unpin,
W: Unpin,
impl<W> UnwindSafe for EncrypterWriter<W> where
W: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BytesEncoder for T where
T: Write,
[src][+]
T: Write,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> NumberEncoder for T where
T: Write,
[src][+]
T: Write,
impl<T> Pointable for T
[src][+]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,
impl<W> WriteBytesExt for W where
W: Write + ?Sized,
[src][+]
W: Write + ?Sized,