pub struct AnyProtocolExtension(/* private fields */);
Expand description
Type-erased protocol extension that implements Clone.
Implementations§
Source§impl AnyProtocolExtension
impl AnyProtocolExtension
Sourcepub fn new<T: ProtocolExtension + Sync + Send + 'static>(extension: T) -> Self
pub fn new<T: ProtocolExtension + Sync + Send + 'static>(extension: T) -> Self
Create a new type-erased protocol extension.
Trait Implementations§
Source§impl Clone for AnyProtocolExtension
impl Clone for AnyProtocolExtension
Source§impl Debug for AnyProtocolExtension
impl Debug for AnyProtocolExtension
Source§impl Deref for AnyProtocolExtension
impl Deref for AnyProtocolExtension
Source§impl DerefMut for AnyProtocolExtension
impl DerefMut for AnyProtocolExtension
Source§impl From<AnyProtocolExtension> for Bytes
impl From<AnyProtocolExtension> for Bytes
Source§fn from(value: AnyProtocolExtension) -> Self
fn from(value: AnyProtocolExtension) -> Self
Converts to this type from the input type.
Source§impl From<PasswordProtocolExtension> for AnyProtocolExtension
impl From<PasswordProtocolExtension> for AnyProtocolExtension
Source§fn from(value: PasswordProtocolExtension) -> Self
fn from(value: PasswordProtocolExtension) -> Self
Converts to this type from the input type.
Source§impl From<UdpProtocolExtension> for AnyProtocolExtension
impl From<UdpProtocolExtension> for AnyProtocolExtension
Source§fn from(value: UdpProtocolExtension) -> Self
fn from(value: UdpProtocolExtension) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AnyProtocolExtension
impl !RefUnwindSafe for AnyProtocolExtension
impl Send for AnyProtocolExtension
impl Sync for AnyProtocolExtension
impl Unpin for AnyProtocolExtension
impl !UnwindSafe for AnyProtocolExtension
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