var searchIndex = {}; searchIndex["xdr_codec"] = {"doc":"XDR runtime encoding/decoding","items":[[8,"Write","xdr_codec","A trait for objects which are byte-oriented sinks.",null,null],[10,"write","","Write a buffer into this object, returning how many bytes were written.",0,null],[10,"flush","","Flush this output stream, ensuring that all intermediately buffered\ncontents reach their destination.",0,null],[11,"write_all","","Attempts to write an entire buffer into this write.",0,null],[11,"write_fmt","","Writes a formatted string into this writer, returning any error\nencountered.",0,null],[11,"by_ref","","Creates a "by reference" adaptor for this instance of `Write`.",0,null],[8,"Read","","The `Read` trait allows for reading bytes from a source.",null,null],[10,"read","","Pull some bytes from this source into the specified buffer, returning\nhow many bytes were read.",1,null],[11,"read_to_end","","Read all bytes until EOF in this source, placing them into `buf`.",1,null],[11,"read_to_string","","Read all bytes until EOF in this source, placing them into `buf`.",1,null],[11,"read_exact","","Read the exact number of bytes required to fill `buf`.",1,null],[11,"by_ref","","Creates a "by reference" adaptor for this instance of `Read`.",1,null],[11,"bytes","","Transforms this `Read` instance to an `Iterator` over its bytes.",1,null],[11,"chars","","Transforms this `Read` instance to an `Iterator` over `char`s.",1,null],[11,"chain","","Creates an adaptor which will chain this stream with another.",1,null],[11,"take","","Creates an adaptor which will read at most `limit` bytes from it.",1,null],[4,"Error","","XDR errors",null,null],[13,"Byteorder","","Byte order packing problem - generally a premature EOF.",2,null],[13,"IOError","","An underlying IO error.",2,null],[13,"InvalidUtf8","","An improperly encoded String.",2,null],[13,"InvalidCase","","Encoding discriminated union with a bad (default) case.",2,null],[13,"InvalidEnum","","Decoding a bad enum value",2,null],[13,"InvalidLen","","Array/String too long",2,null],[13,"Generic","","Generic error.",2,null],[5,"pack","","Serialization (packing) helper.",null,{"inputs":[{"name":"t"},{"name":"out"}],"output":{"name":"result"}}],[5,"pack_array","","Pack a fixed-size array.",null,null],[5,"unpack_flex_array","","Unpack a length-limited array",null,{"inputs":[{"name":"in"},{"name":"usize"}],"output":{"name":"result"}}],[5,"unpack_string","","Unpack length-limited string",null,{"inputs":[{"name":"in"},{"name":"usize"}],"output":{"name":"result"}}],[5,"unpack","","Deserialization (unpacking) helper function",null,{"inputs":[{"name":"in"}],"output":{"name":"result"}}],[0,"record","","XDR record marking",null,null],[3,"XdrRecordReader","xdr_codec::record","Read records from a bytestream.",null,null],[3,"XdrRecordWriter","","Write records into a bytestream.",null,null],[11,"new","","Wrapper a record reader around an existing implementation of\n`BufRead`, such as `BufReader`.",3,{"inputs":[{"name":"r"}],"output":{"name":"xdrrecordreader"}}],[11,"eor","","Current fragment is the end of the record.",3,null],[11,"read","","",3,null],[11,"fill_buf","","",3,null],[11,"consume","","",3,null],[11,"new","","Create a new `XdrRecordWriter` wrapped around a `Write`\nimplementation, using a default buffer size (64k).",4,{"inputs":[{"name":"w"}],"output":{"name":"xdrrecordwriter"}}],[11,"with_buffer","","Create an instance with a specific buffer size. Panics if the\nsize is zero.",4,{"inputs":[{"name":"w"},{"name":"usize"}],"output":{"name":"xdrrecordwriter"}}],[11,"flush_eor","","Flush the current buffer. If `eor` is true, the end of record\nmarker is set.",4,null],[11,"drop","","",4,null],[11,"write","","",4,null],[11,"flush","","",4,null],[6,"Result","xdr_codec","A wrapper around `std::result::Result` where errors are all `xdr_codec::Error`.",null,null],[8,"Pack","","Basic packing trait.",null,null],[10,"pack","","",5,null],[8,"Unpack","","Basic unpacking trait",null,null],[10,"unpack","","",6,{"inputs":[{"name":"in"}],"output":{"name":"result"}}],[11,"fmt","","",2,null],[11,"invalidcase","","",2,{"inputs":[],"output":{"name":"error"}}],[11,"invalidenum","","",2,{"inputs":[],"output":{"name":"error"}}],[11,"invalidlen","","",2,{"inputs":[],"output":{"name":"error"}}],[11,"badutf8","","",2,{"inputs":[{"name":"fromutf8error"}],"output":{"name":"error"}}],[11,"byteorder","","",2,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"generic","","",2,{"inputs":[{"name":"t"}],"output":{"name":"error"}}],[11,"from","","",2,{"inputs":[{"name":"string"}],"output":{"name":"self"}}],[11,"from","","",2,{"inputs":[{"name":"error"}],"output":{"name":"self"}}],[11,"from","","",2,{"inputs":[{"name":"str"}],"output":{"name":"self"}}],[11,"from","","",2,{"inputs":[{"name":"fromutf8error"}],"output":{"name":"self"}}],[11,"from","","",2,{"inputs":[{"name":"error"}],"output":{"name":"self"}}],[11,"description","","",2,null],[11,"cause","","",2,null],[11,"fmt","","",2,null]],"paths":[[8,"Write"],[8,"Read"],[4,"Error"],[3,"XdrRecordReader"],[3,"XdrRecordWriter"],[8,"Pack"],[8,"Unpack"]]}; initSearch(searchIndex);