pub enum Version {
Sip20,
Other(Bytes),
}Expand description
The protocol version on a start line.
Variants§
Sip20
SIP/2.0, the only version sipx speaks.
Other(Bytes)
Any other version. Parsed rather than rejected so the caller can answer 505 rather than dropping the message (RFC 4475 §3.1.2.16).
Implementations§
Trait Implementations§
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl !Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
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