pub enum SyncFrameError {
Show 13 variants
FrameTooLarge(usize),
TooManyReferences(usize),
NonCanonicalReferences,
UnsupportedVersion(u16),
InvalidProtocolRange {
min: u16,
max: u16,
},
NoCommonProtocol {
local_min: u16,
local_max: u16,
remote_min: u16,
remote_max: u16,
},
InvalidShape,
Codec(String),
NonCanonical,
GossipHintTooLarge(usize),
InvitationTooLarge(usize),
TooManyAuthorityObjects(usize),
AuthorityObjectTooLarge(usize),
}Expand description
A rejected control frame or reconciliation plan.
Variants§
FrameTooLarge(usize)
A frame exceeded the hard control-plane bound.
TooManyReferences(usize)
A frame exceeded the per-message immutable-reference bound.
NonCanonicalReferences
Immutable references were not sorted and unique.
UnsupportedVersion(u16)
The encoded version is not supported.
InvalidProtocolRange
A hello advertised its version interval backwards.
NoCommonProtocol
The peers have no mutually understood object protocol.
InvalidShape
The frame kind and its populated fields disagree.
Codec(String)
CBOR was malformed or outside protocol types.
NonCanonical
Valid CBOR did not use the unique canonical representation.
GossipHintTooLarge(usize)
A gossip announcement exceeded its much smaller hard bound.
InvitationTooLarge(usize)
An invitation payload exceeded its 64 KiB bound.
TooManyAuthorityObjects(usize)
An authority message exceeded the maximum capability-chain depth.
AuthorityObjectTooLarge(usize)
One canonical capability object exceeded its hard bound.
Trait Implementations§
Source§impl Clone for SyncFrameError
impl Clone for SyncFrameError
Source§fn clone(&self) -> SyncFrameError
fn clone(&self) -> SyncFrameError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SyncFrameError
impl Debug for SyncFrameError
Source§impl Display for SyncFrameError
impl Display for SyncFrameError
Source§impl Error for SyncFrameError
impl Error for SyncFrameError
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()
Source§impl PartialEq for SyncFrameError
impl PartialEq for SyncFrameError
impl Eq for SyncFrameError
impl StructuralPartialEq for SyncFrameError
Auto Trait Implementations§
impl Freeze for SyncFrameError
impl RefUnwindSafe for SyncFrameError
impl Send for SyncFrameError
impl Sync for SyncFrameError
impl Unpin for SyncFrameError
impl UnwindSafe for SyncFrameError
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