pub struct AcceptedConnection {
pub settings: ConnectionSettings,
pub metadata: Metadata<'static>,
pub setup: Box<dyn FnOnce(ConnectionHandle) + Send>,
}Expand description
Result of accepting a virtual connection.
Fields§
§settings: ConnectionSettingsOur settings for this connection.
metadata: Metadata<'static>Metadata to send back in ConnectionAccept.
setup: Box<dyn FnOnce(ConnectionHandle) + Send>Callback that receives the ConnectionHandle and spawns a Driver.
Auto Trait Implementations§
impl Freeze for AcceptedConnection
impl !RefUnwindSafe for AcceptedConnection
impl Send for AcceptedConnection
impl !Sync for AcceptedConnection
impl Unpin for AcceptedConnection
impl UnsafeUnpin for AcceptedConnection
impl !UnwindSafe for AcceptedConnection
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