pub enum SessionError {
Socket(UdpSocketError),
Packet(PacketError),
PayloadTooLarge {
payload_len: usize,
max_payload_len: usize,
},
FrameAlreadyQueued,
FrameNotReady {
next_frame_in_us: time_tp,
},
FeedbackTimeout {
waited_us: time_tp,
inflight_packets: count_tp,
},
WouldBlock {
next_send_in_us: time_tp,
inflight_packets: count_tp,
packet_window: count_tp,
},
UnexpectedPacketType(u8),
InvalidPacket(&'static str),
}Expand description
Errors that can occur while using the higher-level session wrapper APIs.
Variants§
Socket(UdpSocketError)
UDP socket operation failed.
Packet(PacketError)
Packet view construction or parsing failed.
PayloadTooLarge
The app payload did not fit in the current Prague packet budget.
Fields
FrameAlreadyQueued
A video frame was queued while another one was still pending.
FrameNotReady
The next video frame slot has not opened yet.
FeedbackTimeout
A blocking helper timed out while waiting for feedback needed to make progress.
Fields
WouldBlock
The sender is pacing-limited or window-limited and cannot send yet.
Fields
UnexpectedPacketType(u8)
A packet of an unexpected type was received for the current session role.
InvalidPacket(&'static str)
A packet passed structural parsing but was invalid for the higher-level wrapper.
Trait Implementations§
Source§impl Debug for SessionError
impl Debug for SessionError
Source§impl Display for SessionError
Available on crate feature session only.
impl Display for SessionError
Available on crate feature
session only.Source§impl Error for SessionError
Available on crate feature session only.
impl Error for SessionError
Available on crate feature
session only.Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PacketError> for SessionError
Available on crate feature session only.
impl From<PacketError> for SessionError
Available on crate feature
session only.Source§fn from(value: PacketError) -> Self
fn from(value: PacketError) -> Self
Converts to this type from the input type.
Source§impl From<UdpSocketError> for SessionError
Available on crate feature session only.
impl From<UdpSocketError> for SessionError
Available on crate feature
session only.Source§fn from(value: UdpSocketError) -> Self
fn from(value: UdpSocketError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SessionError
impl RefUnwindSafe for SessionError
impl Send for SessionError
impl Sync for SessionError
impl Unpin for SessionError
impl UnsafeUnpin for SessionError
impl UnwindSafe for SessionError
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