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],[3,"Opaque","","Wrapper for XDR opaque data.",null,null],[12,"0","","",2,null],[4,"Error","","XDR errors",null,null],[13,"IOError","","An underlying IO error.",3,null],[13,"InvalidUtf8","","An improperly encoded String.",3,null],[13,"InvalidCase","","Encoding discriminated union with a bad (default) case.",3,null],[13,"InvalidEnum","","Decoding a bad enum value",3,null],[13,"InvalidLen","","Array/String too long",3,null],[13,"Generic","","Generic error.",3,null],[5,"padding","","Compute XDR padding.",null,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,"pack_opaque_array","","Pack a fixed-size byte array",null,null],[5,"pack_flex","","Pack a dynamically sized array, with size limit check.",null,null],[5,"pack_opaque_flex","","Pack a dynamically sized opaque array, with size limit check.",null,null],[5,"pack_string","","Pack a string with size limit check.",null,{"inputs":[{"name":"str"},{"name":"option"},{"name":"out"}],"output":{"name":"result"}}],[5,"unpack_array","","Unpack a fixed-sized array",null,null],[5,"unpack_opaque_array","","Unpack a fixed-sized opaque array",null,null],[5,"unpack_flex","","Unpack a (perhaps) length-limited array",null,{"inputs":[{"name":"in"},{"name":"option"}],"output":{"name":"result"}}],[5,"unpack_opaque_flex","","Unpack a (perhaps) length-limited opaque array",null,{"inputs":[{"name":"in"},{"name":"option"}],"output":{"name":"result"}}],[5,"unpack_string","","Unpack (perhaps) length-limited string",null,{"inputs":[{"name":"in"},{"name":"option"}],"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,"XdrRecordReaderIter","","Iterator over records in the stream.",null,null],[3,"XdrRecordWriter","","Write records into a bytestream.",null,null],[11,"fmt","","",4,null],[11,"new","","Wrapper a record reader around an existing implementation of\n`BufRead`, such as `BufReader`.",4,{"inputs":[{"name":"r"}],"output":{"name":"xdrrecordreader"}}],[11,"eor","","Current fragment is the end of the record.",4,null],[11,"read","","",4,null],[11,"fill_buf","","",4,null],[11,"consume","","",4,null],[11,"into_iter","","",4,null],[11,"fmt","","",5,null],[11,"next","","",5,null],[11,"new","","Create a new `XdrRecordWriter` wrapped around a `Write`\nimplementation, using a default buffer size (64k).",6,{"inputs":[{"name":"w"}],"output":{"name":"xdrrecordwriter"}}],[11,"with_buffer","","Create an instance with a specific buffer size. Panics if the\nsize is zero.",6,{"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.",6,null],[11,"drop","","",6,null],[11,"write","","",6,null],[11,"flush","","",6,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","","",7,null],[8,"Unpack","","Basic unpacking trait",null,null],[10,"unpack","","",8,{"inputs":[{"name":"in"}],"output":{"name":"result"}}],[11,"fmt","","",3,null],[11,"invalidcase","","",3,{"inputs":[],"output":{"name":"error"}}],[11,"invalidenum","","",3,{"inputs":[],"output":{"name":"error"}}],[11,"invalidlen","","",3,{"inputs":[],"output":{"name":"error"}}],[11,"badutf8","","",3,{"inputs":[{"name":"fromutf8error"}],"output":{"name":"error"}}],[11,"generic","","",3,{"inputs":[{"name":"t"}],"output":{"name":"error"}}],[11,"from","","",3,{"inputs":[{"name":"string"}],"output":{"name":"self"}}],[11,"from","","",3,{"inputs":[{"name":"error"}],"output":{"name":"self"}}],[11,"from","","",3,{"inputs":[{"name":"str"}],"output":{"name":"self"}}],[11,"from","","",3,{"inputs":[{"name":"fromutf8error"}],"output":{"name":"self"}}],[11,"description","","",3,null],[11,"cause","","",3,null],[11,"fmt","","",3,null],[11,"hash","","",2,null],[11,"partial_cmp","","",2,null],[11,"lt","","",2,null],[11,"le","","",2,null],[11,"gt","","",2,null],[11,"ge","","",2,null],[11,"cmp","","",2,null],[11,"eq","","",2,null],[11,"ne","","",2,null],[11,"clone","","",2,null],[11,"fmt","","",2,null],[11,"owned","","",2,{"inputs":[{"name":"vec"}],"output":{"name":"opaque"}}],[11,"borrowed","","",2,null],[11,"deref","","",2,null],[11,"from","","",2,null],[11,"pack","","",2,null],[11,"unpack","","",2,{"inputs":[{"name":"in"}],"output":{"name":"result"}}]],"paths":[[8,"Write"],[8,"Read"],[3,"Opaque"],[4,"Error"],[3,"XdrRecordReader"],[3,"XdrRecordReaderIter"],[3,"XdrRecordWriter"],[8,"Pack"],[8,"Unpack"]]}; initSearch(searchIndex);