pub enum StunPacketDecodedValue {
Decoded((StunPacket, usize)),
MoreBytesNeeded((StunPacketDecoder, Option<usize>)),
}Expand description
Describes the possible outcomes of the STUN packet decoding.
- If the STUN packet has been fully decoded, the method returns the decoded STUN packet and the number of bytes consumed.
- If the STUN packet has not been fully decoded, the method returns the decoder and the number of bytes still needed to complete the STUN packet, if known.
Variants§
Decoded((StunPacket, usize))
Returns the decoded STUN packet and the number of bytes consumed from the input.
MoreBytesNeeded((StunPacketDecoder, Option<usize>))
Returns the decoder and the number of bytes missing to complete the STUN packet if known.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StunPacketDecodedValue
impl RefUnwindSafe for StunPacketDecodedValue
impl Send for StunPacketDecodedValue
impl Sync for StunPacketDecodedValue
impl Unpin for StunPacketDecodedValue
impl UnwindSafe for StunPacketDecodedValue
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