pub struct StunPacketDecodedError {
pub error_type: StunPacketErrorType,
pub buffer: Vec<u8>,
pub size: usize,
pub consumed: usize,
}
Expand description
Describes the error that can occur during the STUN packet decoding.
Fields§
§error_type: StunPacketErrorType
The type of error that occurred during the STUN packet decoding.
buffer: Vec<u8>
The internal buffer filled with bytes.
size: usize
The size of the buffer that has been filled.
consumed: usize
The number of bytes consumed from the input data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StunPacketDecodedError
impl RefUnwindSafe for StunPacketDecodedError
impl Send for StunPacketDecodedError
impl Sync for StunPacketDecodedError
impl Unpin for StunPacketDecodedError
impl UnwindSafe for StunPacketDecodedError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more