fn create_qs(dir: StaticFiles) -> Result<(Queue<ListenerEvent>, Queue<Event>, Queue<Event>), String> {
    let incoming_q = Queue::new(dir.clone())?;
    let reading_q = Queue::new(dir.clone())?;
    let writing_q = Queue::new(dir)?;

    return Ok((incoming_q, reading_q, writing_q));
}
/// Creating the queues to handle the requests:
///
/// Creates the incoming, writing and reading queues.
/// When an error occurs, the server shuts down.
Creating the queues to handle the requests:
Creates the incoming, writing and reading queues.
When an error occurs, the server shuts down.
Creating the queues to handle the requests : Creates the incoming writing and reading queues . When an error occurs the server shuts down .
fn create_qs(dir: StaticFiles) -> Result<(Queue<ListenerEvent>, Queue<Event>, Queue<Event>), String> {
    let incoming_q = Queue::new(dir.clone())?;
    let reading_q = Queue::new(dir.clone())?;
    let writing_q = Queue::new(dir)?;
    return Ok((incoming_q, reading_q, writing_q));
}
fn create_qs ( dir : StaticFiles ) -> Result < ( Queue < ListenerEvent > , Queue < Event > , Queue < Event > ) , String > { let incoming_q = Queue :: new ( dir . clone ( ) ) ? ; let reading_q = Queue :: new ( dir . clone ( ) ) ? ; let writing_q = Queue :: new ( dir ) ? ; return Ok ( ( incoming_q , reading_q , writing_q ) ) ; }
Creating the queues to handle the requests:
Creates the incoming, writing and reading queues.
Creating the queues to handle the requests : Creates the incoming writing and reading queues .
dir
StaticFiles
dir
StaticFiles