pub enum WriteError {
PayloadTooLarge,
DomainTooLong,
InvalidHashLen,
}Expand description
Errors that can occur when writing protocol data.
Variants§
PayloadTooLarge
Payload exceeds maximum allowed size (65535 bytes for UDP).
DomainTooLong
Domain name exceeds maximum length (255 bytes).
InvalidHashLen
Hash must be exactly 56 bytes.
Trait Implementations§
Source§impl Clone for WriteError
impl Clone for WriteError
Source§fn clone(&self) -> WriteError
fn clone(&self) -> WriteError
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 WriteError
impl Debug for WriteError
Source§impl PartialEq for WriteError
impl PartialEq for WriteError
impl Copy for WriteError
impl Eq for WriteError
impl StructuralPartialEq for WriteError
Auto Trait Implementations§
impl Freeze for WriteError
impl RefUnwindSafe for WriteError
impl Send for WriteError
impl Sync for WriteError
impl Unpin for WriteError
impl UnwindSafe for WriteError
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