Struct xorio::Xor[][src]

pub struct Xor<T> { /* fields omitted */ }

Read/Write implementation that Xor's the bytes that come through it and wraps around another Read or Write.

Implementations

impl<T> Xor<T>[src]

pub fn new(inner: T) -> Self[src]

Create a new Xor wrapped around the given IO type.

pub fn new_with_xor_bytes(inner: T, xor_bytes: Vec<u8>) -> Self[src]

Create a new Xor wrapped around the given IO type, with custom xor_bytes that will be used when XOR-ing the stream. The default xor_bytes is one 0b01010101 byte.

Trait Implementations

impl<R: Read> Read for Xor<R>[src]

impl<S: Seek> Seek for Xor<S>[src]

impl<W: Write> Write for Xor<W>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Xor<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Xor<T> where
    T: Send
[src]

impl<T> Sync for Xor<T> where
    T: Sync
[src]

impl<T> Unpin for Xor<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for Xor<T> where
    T: UnwindSafe
[src]

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.