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§
source§impl RotateBytes
impl RotateBytes
sourcepub const ROT13: RotateBytes = _
pub const ROT13: RotateBytes = _
The ROT13 cipher.
Trait Implementations§
source§impl Clone for RotateBytes
impl Clone for RotateBytes
source§fn clone(&self) -> RotateBytes
fn clone(&self) -> RotateBytes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more