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: u8The 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 duplicate 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 moreSource§impl Debug for RotateBytes
impl Debug for RotateBytes
Source§impl Middleware for RotateBytes
impl Middleware for RotateBytes
impl Copy for RotateBytes
Auto Trait Implementations§
impl Freeze for RotateBytes
impl RefUnwindSafe for RotateBytes
impl Send for RotateBytes
impl Sync for RotateBytes
impl Unpin for RotateBytes
impl UnwindSafe for RotateBytes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more