pub enum PublishError {
NotAllowed,
DuplicateName,
InvalidName,
Timeout,
LimitReached,
Disconnected,
Internal(InternalError),
}Expand description
An error that can occur when publishing a data track.
Variants§
NotAllowed
Local participant does not have permission to publish data tracks.
Ensure the participant’s token contains the canPublishData grant.
DuplicateName
A track with the same name is already published by the local participant.
InvalidName
The track name is invalid.
This occurs when the name is empty or exceeds the allowed maximum length.
Timeout
Request to publish the track took long to complete.
LimitReached
No additional data tracks can be published by the local participant.
Disconnected
Cannot publish data track when the room is disconnected.
Internal(InternalError)
Internal error, please report on GitHub.
Trait Implementations§
Source§impl Debug for PublishError
impl Debug for PublishError
Source§impl Display for PublishError
impl Display for PublishError
Source§impl Error for PublishError
impl Error for PublishError
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<InternalError> for PublishError
impl From<InternalError> for PublishError
Source§fn from(source: InternalError) -> Self
fn from(source: InternalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PublishError
impl RefUnwindSafe for PublishError
impl Send for PublishError
impl Sync for PublishError
impl Unpin for PublishError
impl UnsafeUnpin for PublishError
impl UnwindSafe for PublishError
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