Struct bird_protocol_server::server::ProtocolServerDeclare
source · [−]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: C
Auto Trait Implementations
impl<H, C> RefUnwindSafe for ProtocolServerDeclare<H, C> where
C: RefUnwindSafe,
H: 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> where
C: Unpin,
H: Unpin,
impl<H, C> UnwindSafe for ProtocolServerDeclare<H, C> where
C: UnwindSafe,
H: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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