/// Attempts to send a GeneralReject response with the provided `status_code`.
Attempts to send a GeneralReject response with the provided `status_code`.
Attempts to send a GeneralReject response with the provided ` status_code ` .
fn send_general_reject(command: AvctpCommand, status_code: StatusCode) -> Result<(), PeerError> {
    let reject_response = BrowsePreamble::general_reject(status_code);
    let mut buf = vec![0; reject_response.encoded_len()];
    reject_response.encode(&mut buf[..]).expect("unable to encode reject packet");
    command.send_response(&buf[..]).map_err(Into::into)
}
fn send_general_reject ( command : AvctpCommand , status_code : StatusCode ) -> Result < ( ) , PeerError > { let reject_response = BrowsePreamble :: general_reject ( status_code ) ; let mut buf = vec ! [ 0 reject_response encoded_len ( ) ] ; reject_response . encode ( & mut buf [ .. ] ) . expect ( " " ) ; command . send_response ( & buf [ .. ] ) . map_err ( Into :: into ) }
Attempts to send a GeneralReject response with the provided `status_code`.
Attempts to send a GeneralReject response with the provided ` status_code ` .
command
AvctpCommand
status_code
StatusCode