pub struct PushFrameError { /* private fields */ }Expand description
Frame could not be pushed to a data track.
Implementations§
Source§impl PushFrameError
impl PushFrameError
Sourcepub fn reason(&self) -> PushFrameErrorReason
pub fn reason(&self) -> PushFrameErrorReason
Returns the reason the frame could not be pushed.
Sourcepub fn into_frame(self) -> DataTrackFrame
pub fn into_frame(self) -> DataTrackFrame
Consumes the error and returns the frame that couldn’t be pushed.
This may be useful for implementing application-specific retry logic.
Trait Implementations§
Source§impl Debug for PushFrameError
impl Debug for PushFrameError
Source§impl Display for PushFrameError
impl Display for PushFrameError
Source§impl Error for PushFrameError
impl Error for PushFrameError
1.30.0 · 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()
Auto Trait Implementations§
impl !Freeze for PushFrameError
impl RefUnwindSafe for PushFrameError
impl Send for PushFrameError
impl Sync for PushFrameError
impl Unpin for PushFrameError
impl UnsafeUnpin for PushFrameError
impl UnwindSafe for PushFrameError
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