Struct miltr_common::modifications::headers::ChangeHeader
source · pub struct ChangeHeader { /* private fields */ }Expand description
Change an existing header
Implementations§
source§impl ChangeHeader
impl ChangeHeader
Trait Implementations§
source§impl Clone for ChangeHeader
impl Clone for ChangeHeader
source§fn clone(&self) -> ChangeHeader
fn clone(&self) -> ChangeHeader
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 moresource§impl Debug for ChangeHeader
impl Debug for ChangeHeader
source§impl From<ChangeHeader> for ModificationAction
impl From<ChangeHeader> for ModificationAction
source§fn from(v: ChangeHeader) -> ModificationAction
fn from(v: ChangeHeader) -> ModificationAction
Converts to this type from the input type.
source§impl From<ChangeHeader> for ServerCommand
impl From<ChangeHeader> for ServerCommand
source§fn from(value: ChangeHeader) -> Self
fn from(value: ChangeHeader) -> Self
Converts to this type from the input type.
source§impl TryInto<ChangeHeader> for ModificationAction
impl TryInto<ChangeHeader> for ModificationAction
source§impl Writable for ChangeHeader
impl Writable for ChangeHeader
source§fn write(&self, buffer: &mut BytesMut)
fn write(&self, buffer: &mut BytesMut)
index : uint32 is Index of the occurrence of this header. index has to > 0. (Note that the “index” above is per-name–i.e. a 3 in this field indicates that the modification is to be applied to the third such header matching the supplied “name” field. A zero length string for “value”, leaving only a single NUL byte, indicates that the header should be deleted entirely.)
source§fn len(&self) -> usize
fn len(&self) -> usize
Byte-length that would be written if
Self::write is calledsource§fn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Whether a call to
Self::write would write somethingAuto Trait Implementations§
impl RefUnwindSafe for ChangeHeader
impl Send for ChangeHeader
impl Sync for ChangeHeader
impl Unpin for ChangeHeader
impl UnwindSafe for ChangeHeader
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