pub struct VersionNegotiationRequestExtension(_);Expand description
版本协商扩展
Implementations
sourceimpl VersionNegotiationRequestExtension
impl VersionNegotiationRequestExtension
sourcepub fn new(value: VersionNegotiation) -> Self
pub fn new(value: VersionNegotiation) -> Self
创建扩展类型
sourcepub fn get(&self) -> &VersionNegotiation
pub fn get(&self) -> &VersionNegotiation
获取扩展类型的值
Trait Implementations
sourceimpl Clone for VersionNegotiationRequestExtension
impl Clone for VersionNegotiationRequestExtension
sourcefn clone(&self) -> VersionNegotiationRequestExtension
fn clone(&self) -> VersionNegotiationRequestExtension
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for VersionNegotiationRequestExtension
impl Send for VersionNegotiationRequestExtension
impl Sync for VersionNegotiationRequestExtension
impl Unpin for VersionNegotiationRequestExtension
impl UnwindSafe for VersionNegotiationRequestExtension
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more