Struct protocol::wire::middleware::rotate_bytes::RotateBytes
source · [−]pub struct RotateBytes {
pub amount: u8,
}
Expand description
Middleware that rotates each transmitted byte by a fixed offset.
NOTE: This is not really useful in real life.
Fields
amount: u8
The integer offset to rotate by.
Implementations
sourceimpl RotateBytes
impl RotateBytes
sourcepub const ROT13: RotateBytes = _
pub const ROT13: RotateBytes = _
The ROT13 cipher.
Trait Implementations
sourceimpl Clone for RotateBytes
impl Clone for RotateBytes
sourcefn clone(&self) -> RotateBytes
fn clone(&self) -> RotateBytes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RotateBytes
impl Debug for RotateBytes
sourceimpl Middleware for RotateBytes
impl Middleware for RotateBytes
impl Copy for RotateBytes
Auto Trait Implementations
impl RefUnwindSafe for RotateBytes
impl Send for RotateBytes
impl Sync for RotateBytes
impl Unpin for RotateBytes
impl UnwindSafe for RotateBytes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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