pub struct VersionNegotiationRequestExtension(/* private fields */);
Expand description
版本协商扩展
Implementations§
Source§impl 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§
Source§impl Clone for VersionNegotiationRequestExtension
impl Clone for VersionNegotiationRequestExtension
Source§fn clone(&self) -> VersionNegotiationRequestExtension
fn clone(&self) -> VersionNegotiationRequestExtension
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 moreAuto Trait Implementations§
impl Freeze for VersionNegotiationRequestExtension
impl RefUnwindSafe for VersionNegotiationRequestExtension
impl Send for VersionNegotiationRequestExtension
impl Sync for VersionNegotiationRequestExtension
impl Unpin for VersionNegotiationRequestExtension
impl UnwindSafe for VersionNegotiationRequestExtension
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