Struct encryption::io::EncrypterWriter[][src]

pub struct EncrypterWriter<W: Write> {
    writer: Option<W>,
    crypter: OCrypter,
    block_size: usize,
}

Fields

writer: Option<W>crypter: OCrypterblock_size: usize

Implementations

impl<W: Write> EncrypterWriter<W>[src]

pub fn new(
    writer: W,
    method: EncryptionMethod,
    key: &[u8],
    iv: Iv
) -> Result<EncrypterWriter<W>>
[src]

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]

pub fn sync_all(&self) -> IoResult<()>[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

impl<W> Send for EncrypterWriter<W> where
    W: Send

impl<W> Sync for EncrypterWriter<W> where
    W: Sync

impl<W> Unpin for EncrypterWriter<W> where
    W: Unpin

impl<W> UnwindSafe for EncrypterWriter<W> where
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> BytesEncoder for T where
    T: Write
[src]

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]

impl<T> NumberEncoder for T where
    T: Write
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<W> WriteBytesExt for W where
    W: Write + ?Sized
[src]