var searchIndex = {}; searchIndex["gjio"] = {"doc":"Asynchronous input and output.","items":[[3,"BufferPrefix","gjio","Wrapper around an owned buffer, exposing some number of initial bytes.",null,null],[12,"buf","","The underlying buffer.",0,null],[12,"end","","The number of bytes to expose.",0,null],[3,"EventPort","","Source of events from the outside world. Implements `gj::EventPort`.",null,null],[3,"Network","","Mediates the creation of async-enabled sockets.",null,null],[3,"SocketAddress","","An address to which the application may connect or on which the application\nmay listen.",null,null],[3,"SocketListener","","A server socket that can accept connections.",null,null],[3,"SocketStream","","A connected socket that allows reading and writing.",null,null],[3,"Timer","","Allows scheduling of timeouts.",null,null],[6,"RawDescriptor","","",null,null],[8,"AsyncRead","","A nonblocking input bytestream.",null,null],[10,"try_read","","Attempts to read `buf.len()` bytes from the stream, writing them into `buf`.\nReturns `the modified `buf`,and the number of bytes actually read.\nReturns as soon as `min_bytes` are read or EOF is encountered.",1,null],[11,"read","","Like `try_read()`, but returns an error if EOF is encountered before `min_bytes`\ncan be read.",1,null],[8,"AsyncWrite","","A nonblocking output bytestream.",null,null],[10,"write","","Attempts to write all `buf.len()` bytes from `buf` into the stream. Returns `buf`\nonce all of the bytes have been written.",2,null],[11,"new","","",0,{"inputs":[{"name":"t"},{"name":"usize"}],"output":{"name":"bufferprefix"}}],[11,"as_ref","","",0,null],[11,"new","","",3,{"inputs":[],"output":{"name":"result"}}],[11,"get_network","","",3,null],[11,"get_timer","","",3,null],[11,"wait","","",3,null],[11,"clone","","",4,null],[11,"get_tcp_address","","",4,null],[11,"get_unix_address","","",4,null],[11,"new_socket_pair","","",4,null],[11,"wrap_raw_socket_descriptor","","",4,null],[11,"socket_spawn","","Creates a new thread and sets up a socket pair that can be used to communicate with it.\nPasses one of the sockets to the thread's start function and returns the other socket.\nThe new thread will already have an active event loop when `start_func` is called.",4,null],[11,"connect","","",5,null],[11,"listen","","",5,null],[11,"clone","","",6,null],[11,"local_addr","","Gets the local address. Useful if you didn't specify a port when constructing\nthe `SocketAddress`.",6,null],[11,"accept","","",6,null],[11,"clone","","",7,null],[11,"try_read","","",7,null],[11,"write","","",7,null],[11,"after_delay","","Returns a promise that will be fulfilled after the given delay.",8,null],[11,"timeout_after","","Wraps the given promise in a timeout. If the original promise is not completed within that\ntime, it is cancelled.",8,null]],"paths":[[3,"BufferPrefix"],[8,"AsyncRead"],[8,"AsyncWrite"],[3,"EventPort"],[3,"Network"],[3,"SocketAddress"],[3,"SocketListener"],[3,"SocketStream"],[3,"Timer"]]}; initSearch(searchIndex);