pub struct DeleteStamp {
pub stamp: Stamp,
}Expand description
A delete’s attachment under the envelope: CH · run · seq, with tag 0
and no record. It keeps CH, which states the run’s width and lets a
reader refuse an attachment that is not an envelope.
Fields§
§stamp: StampImplementations§
Source§impl DeleteStamp
impl DeleteStamp
Sourcepub fn parse(bytes: &[u8]) -> Result<DeleteStamp, Refusal>
pub fn parse(bytes: &[u8]) -> Result<DeleteStamp, Refusal>
A delete’s attachment read as an envelope, or the first refusal that applies.
§Errors
Refusal::Empty, Refusal::Reserved, Refusal::WrongSample
for any form but a delete, Refusal::DeleteTag, Refusal::Short
or Refusal::Trailing, in that order.
Trait Implementations§
Source§impl Clone for DeleteStamp
impl Clone for DeleteStamp
impl Copy for DeleteStamp
Source§impl Debug for DeleteStamp
impl Debug for DeleteStamp
impl Eq for DeleteStamp
Source§impl Hash for DeleteStamp
impl Hash for DeleteStamp
Source§impl PartialEq for DeleteStamp
impl PartialEq for DeleteStamp
impl StructuralPartialEq for DeleteStamp
Auto Trait Implementations§
impl Forget for DeleteStamp
impl Freeze for DeleteStamp
impl Move for DeleteStamp
impl RefUnwindSafe for DeleteStamp
impl Send for DeleteStamp
impl Sync for DeleteStamp
impl Unpin for DeleteStamp
impl UnsafeUnpin for DeleteStamp
impl UnwindSafe for DeleteStamp
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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