pub struct ProtocolServerDeclare<H: ReadHandler + Sized + Send + Sync + 'static, C: ConnectionHandler + Sized + Send + Sync + 'static> {
pub host: String,
pub read_handler: H,
pub connection_handler: C,
}Fields§
§host: String§read_handler: H§connection_handler: CAuto Trait Implementations§
impl<H, C> Freeze for ProtocolServerDeclare<H, C>
impl<H, C> RefUnwindSafe for ProtocolServerDeclare<H, C>where
H: RefUnwindSafe,
C: RefUnwindSafe,
impl<H, C> Send for ProtocolServerDeclare<H, C>
impl<H, C> Sync for ProtocolServerDeclare<H, C>
impl<H, C> Unpin for ProtocolServerDeclare<H, C>
impl<H, C> UnwindSafe for ProtocolServerDeclare<H, C>where
H: UnwindSafe,
C: UnwindSafe,
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