Enum rdest::Error [−][src]
pub enum Error {}Show variants
MsgToLarge, UnknownId(u8), Incomplete(&'static str), InvalidProtocolId, InvalidInfoHash, InvalidPeerId, InvalidLength(&'static str), InvalidPieceIndex(&'static str), FileNotFound, FileCannotWrite, PeerNotFound, PieceNotRequested, PieceNotLoaded, PieceBuffMissing, PieceHashMismatch, KeepAliveTimeout, InfoMissing, SocketNotAvailable, CantReadFromSocket, ConnectionReset, ConnectionClosed, DecodeUnexpectedChar(&'static str, usize), DecodeIncorrectChar(&'static str, usize), DecodeUnableConvert(&'static str, &'static str, usize), DecodeNotEnoughChars(&'static str, usize), DecodeMissingTerminalChars(&'static str, usize), DecodeLeadingZero(&'static str, usize), DecodeOddNumOfElements(&'static str, usize), DecodeKeyNotString(&'static str, usize), TrackerBEncodeMissing, TrackerDataMissing, TrackerIncorrectOrMissing(&'static str), TrackerRespFail(String), MetaFileNotFound, MetaBEncodeMissing, MetaDataMissing, MetaLenAndFilesConflict, MetaLenOrFilesMissing, MetaInvalidUtf8(&'static str), MetaIncorrectOrMissing(&'static str), MetaInvalidU64(&'static str), MetaNotDivisible(&'static str),
rdest lib errors
Variants
To avoid DDoS and exhaustion of RAM by peer, maximal size of message is limited to MAX_FRAME_SIZE bytes.
UnknownId(u8)
Not supported ID message (probably from not supported standard extension).
Incomplete(&'static str)
Incomplete message (details as argument e.g: message name).
Invalid protocol ID in Handshake message. Check BEP3.
Peer return invalid info hash in Handshake message.
Peer introduced himself with unexpected ID
InvalidLength(&'static str)
Invalid length of Piece or Request message (different than requested peer).
InvalidPieceIndex(&'static str)
Invalid piece index (different than requested by peer).
Can’t load piece file.
Can’t write to file.
Peer not found in manager.
Piece not requested by client.
Piece not loaded by handler.
Missing piece buffer on requested message.
Piece hash mismatch.
Peer doesn’t send any message, keep-alive trigger.
Missing info field to calculate hash.
Socket not available.
Can’t read from socket.
Connection reset.
Connection closed.
Decoder encountered unexpected char.
Decoder encountered incorrect char.
Decoder was unable to convert to BValue
.
Not enough chars to decode.
Decoder encountered missing terminal character “e”.
Incorrect integer with leading zero.
Odd number of elements in dictionary.
Key not string in dictionary
Missing bencoded data to decode tracker response.
Not enough data in tracker response.
TrackerIncorrectOrMissing(&'static str)
Incorrect or missing fields in tracker response.
TrackerRespFail(String)
Tracker replay with error.
Missing metainfo file.
Missing bencoded data in metainfo.
Missing data in metainfo.
Mutually exclusive length and files in metafile.
Missing length or files in metafile.
MetaInvalidUtf8(&'static str)
Can’t convert metainfo fields to UTF-8.
MetaIncorrectOrMissing(&'static str)
Missing field in metainfo.
MetaInvalidU64(&'static str)
Can’t convert metainfo field to u64
MetaNotDivisible(&'static str)
Not enough data to extract SHA-1 hashes.
Trait Implementations
impl StructuralPartialEq for Error
[src]
impl StructuralPartialEq for Error
[src]Auto Trait Implementations
impl RefUnwindSafe for Error
impl RefUnwindSafe for Error
impl UnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]