pub struct WireVersion {
pub v: VersionInt,
pub req: String,
}Expand description
A version and the versions it accepts, as sent on the wire.
Fields§
§v: VersionInt§req: StringTrait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for WireVersion
impl<'__de, __Context> BorrowDecode<'__de, __Context> for WireVersion
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for WireVersion
impl Clone for WireVersion
Source§impl Debug for WireVersion
impl Debug for WireVersion
Source§impl<__Context> Decode<__Context> for WireVersion
impl<__Context> Decode<__Context> for WireVersion
Source§impl Encode for WireVersion
impl Encode for WireVersion
Auto Trait Implementations§
impl Freeze for WireVersion
impl RefUnwindSafe for WireVersion
impl Send for WireVersion
impl Sync for WireVersion
impl Unpin for WireVersion
impl UnsafeUnpin for WireVersion
impl UnwindSafe for WireVersion
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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