async fn refuse_attach<S>(
socket: &mut ClientSocket<S>,
reply_to: Option<u64>,
why: &str,
seat: SessionSlot,
) -> Result<()>where
S: Sink<Message, Error = Error> + Unpin,Expand description
Answer a refused attach: through the client’s reply when it sent one, and as the protocol’s error frame otherwise.