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 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 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 Freeze for ChangeHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more