pub enum Error {
Show 18 variants
Transport {
source: Error,
meta: Meta,
},
Moq {
source: Error,
meta: Meta,
},
Fill {
source: Arc<AnyError>,
meta: Meta,
},
Refused {
source: Error,
meta: Meta,
},
Rejected {
source: Rejection,
meta: Meta,
},
SessionClosed {
source: Error,
meta: Meta,
},
Duplicate {
path: Path,
meta: Meta,
},
InvalidPath {
path: String,
meta: Meta,
},
NotGranted {
path: Path,
peer: EndpointId,
publish_prefixes: Prefixes,
meta: Meta,
},
NotOwner {
path: Path,
peer: EndpointId,
meta: Meta,
},
TooManyClaims {
peer: EndpointId,
meta: Meta,
},
NotAnnounced {
path: Path,
meta: Meta,
},
NoRoute {
path: Path,
meta: Meta,
},
Unresolved {
path: Path,
source: Error,
meta: Meta,
},
InvalidRelayUrl {
url: Box<Url>,
reason: &'static str,
meta: Meta,
},
Relay {
source: Arc<AnyError>,
meta: Meta,
},
InvalidTicket {
reason: &'static str,
meta: Meta,
},
ShutDown {
meta: Meta,
},
}Expand description
Variants§
Transport
The QUIC connection could not be set up.
The peer could not be dialed, or it negotiated an ALPN this build does not speak.
Moq
moq-net refused an operation.
The MoQ handshake or the session failed, a path did not parse, or the route table refused to create or announce a broadcast.
Fill
The fill passed to Node::publish_with failed.
The broadcast was closed and never announced.
Refused
The peer refused the session this node opened.
Rejected
This node’s policy rejected the peer.
A dial fails with it before it reaches the peer.
SessionClosed
The session ended.
Fields
source: ErrorIs moq_net::Error::Cancel if either side closed it.
Duplicate
A publication already exists at this path.
InvalidPath
The path cannot be published or subscribed.
It is empty, holds a *, or has more segments than a path may have.
NotGranted
The session’s grant does not cover the path.
For a subscribe, the peer may not publish the path. publish_prefixes
are the prefixes the grant lets the peer publish.
NotOwner
The peer does not own the path, so it cannot be claimed for the peer.
TooManyClaims
The peer already holds as many claimed paths as the node allows.
NotAnnounced
The path was not announced before its only link went away.
NoRoute
No link can serve the path.
The reach asks for media relays and none is attached, or names this node as the publisher of a path it does not publish.
Unresolved
The path could not be resolved.
The peer refused it, or it lies outside what this node may see.
InvalidRelayUrl
A media relay URL names no media relay this node can attach to.
Relay
A relay link could not be set up.
InvalidTicket
A string is not a BroadcastTicket.
ShutDown
The node has shut down.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl StackError for Error
impl StackError for Error
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Source§fn as_dyn(&self) -> &dyn StackError
fn as_dyn(&self) -> &dyn StackError
dyn StackError.