Enum DatapackNegotiationError
#[non_exhaustive]pub enum DatapackNegotiationError {
RequiredRegistry {
registry: String,
mod_id: String,
},
UnreadableOffer,
}Expand description
Why a server refuses to send a client its registries: a registry the server declared as required is not one the client offered with the same schema.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RequiredRegistry
The client did not offer the required registry, or offered it with another schema.
UnreadableOffer
The client’s offer is not readable, or is over the bounds.
Trait Implementations§
§impl Clone for DatapackNegotiationError
impl Clone for DatapackNegotiationError
§fn clone(&self) -> DatapackNegotiationError
fn clone(&self) -> DatapackNegotiationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for DatapackNegotiationError
impl Debug for DatapackNegotiationError
impl Eq for DatapackNegotiationError
§impl PartialEq for DatapackNegotiationError
impl PartialEq for DatapackNegotiationError
impl StructuralPartialEq for DatapackNegotiationError
Auto Trait Implementations§
impl Freeze for DatapackNegotiationError
impl RefUnwindSafe for DatapackNegotiationError
impl Send for DatapackNegotiationError
impl Sync for DatapackNegotiationError
impl Unpin for DatapackNegotiationError
impl UnsafeUnpin for DatapackNegotiationError
impl UnwindSafe for DatapackNegotiationError
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