Standardize unimplemented API failures
This commit is contained in:
@@ -7,5 +7,8 @@ license.workspace = true
|
||||
repository.workspace = true
|
||||
description = "RLV protocol shims for the MetaCrate LibreMetaverse rewrite"
|
||||
|
||||
[dependencies]
|
||||
libremetaverse-types = { path = "../libremetaverse-types" }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#![allow(non_camel_case_types)]
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.AttachmentRequest`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct AttachmentRequest;
|
||||
impl AttachmentRequest {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.AttachmentRequest";
|
||||
@@ -11,7 +11,7 @@ impl AttachmentRequest {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.CameraRestrictions`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct CameraRestrictions;
|
||||
impl CameraRestrictions {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.CameraRestrictions";
|
||||
@@ -19,7 +19,7 @@ impl CameraRestrictions {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.CameraSettings`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct CameraSettings;
|
||||
impl CameraSettings {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.CameraSettings";
|
||||
@@ -27,7 +27,7 @@ impl CameraSettings {
|
||||
}
|
||||
|
||||
/// `enum` shim for C# `LibreMetaverse.RLV.HoverTextLocation`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct HoverTextLocation;
|
||||
impl HoverTextLocation {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.HoverTextLocation";
|
||||
@@ -45,7 +45,7 @@ pub trait IRlvQueryCallbacks {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.InventoryMap`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct InventoryMap;
|
||||
impl InventoryMap {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.InventoryMap";
|
||||
@@ -53,7 +53,7 @@ impl InventoryMap {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.LockedFolderPublic`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct LockedFolderPublic;
|
||||
impl LockedFolderPublic {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.LockedFolderPublic";
|
||||
@@ -61,7 +61,7 @@ impl LockedFolderPublic {
|
||||
}
|
||||
|
||||
/// `enum` shim for C# `LibreMetaverse.RLV.ObjectLocation`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct ObjectLocation;
|
||||
impl ObjectLocation {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.ObjectLocation";
|
||||
@@ -69,7 +69,7 @@ impl ObjectLocation {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.RlvActionCallbacksDefault`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvActionCallbacksDefault;
|
||||
impl RlvActionCallbacksDefault {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvActionCallbacksDefault";
|
||||
@@ -77,7 +77,7 @@ impl RlvActionCallbacksDefault {
|
||||
}
|
||||
|
||||
/// `enum` shim for C# `LibreMetaverse.RLV.RlvAttachmentPoint`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvAttachmentPoint;
|
||||
impl RlvAttachmentPoint {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvAttachmentPoint";
|
||||
@@ -85,7 +85,7 @@ impl RlvAttachmentPoint {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.RlvBlacklist`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvBlacklist;
|
||||
impl RlvBlacklist {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvBlacklist";
|
||||
@@ -93,7 +93,7 @@ impl RlvBlacklist {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.RlvCallbacksDefault`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvCallbacksDefault;
|
||||
impl RlvCallbacksDefault {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvCallbacksDefault";
|
||||
@@ -101,7 +101,7 @@ impl RlvCallbacksDefault {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.RlvCommandProcessor`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvCommandProcessor;
|
||||
impl RlvCommandProcessor {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvCommandProcessor";
|
||||
@@ -109,7 +109,7 @@ impl RlvCommandProcessor {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.RlvCommon`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvCommon;
|
||||
impl RlvCommon {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvCommon";
|
||||
@@ -117,7 +117,7 @@ impl RlvCommon {
|
||||
}
|
||||
|
||||
/// `enum` shim for C# `LibreMetaverse.RLV.RlvGestureState`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvGestureState;
|
||||
impl RlvGestureState {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvGestureState";
|
||||
@@ -125,7 +125,7 @@ impl RlvGestureState {
|
||||
}
|
||||
|
||||
/// `enum` shim for C# `LibreMetaverse.RLV.RlvGetDebugType`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvGetDebugType;
|
||||
impl RlvGetDebugType {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvGetDebugType";
|
||||
@@ -133,7 +133,7 @@ impl RlvGetDebugType {
|
||||
}
|
||||
|
||||
/// `enum` shim for C# `LibreMetaverse.RLV.RlvGetEnvType`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvGetEnvType;
|
||||
impl RlvGetEnvType {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvGetEnvType";
|
||||
@@ -141,7 +141,7 @@ impl RlvGetEnvType {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.RlvInventoryItem`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvInventoryItem;
|
||||
impl RlvInventoryItem {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvInventoryItem";
|
||||
@@ -149,7 +149,7 @@ impl RlvInventoryItem {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.RlvPermissionsService`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvPermissionsService;
|
||||
impl RlvPermissionsService {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvPermissionsService";
|
||||
@@ -157,7 +157,7 @@ impl RlvPermissionsService {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.RlvRestriction`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvRestriction;
|
||||
impl RlvRestriction {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvRestriction";
|
||||
@@ -165,7 +165,7 @@ impl RlvRestriction {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.RlvRestrictionManager`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvRestrictionManager;
|
||||
impl RlvRestrictionManager {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvRestrictionManager";
|
||||
@@ -173,7 +173,7 @@ impl RlvRestrictionManager {
|
||||
}
|
||||
|
||||
/// `enum` shim for C# `LibreMetaverse.RLV.RlvRestrictionType`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvRestrictionType;
|
||||
impl RlvRestrictionType {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvRestrictionType";
|
||||
@@ -181,7 +181,7 @@ impl RlvRestrictionType {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.RlvService`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvService;
|
||||
impl RlvService {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvService";
|
||||
@@ -189,7 +189,7 @@ impl RlvService {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.RlvSharedFolder`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvSharedFolder;
|
||||
impl RlvSharedFolder {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvSharedFolder";
|
||||
@@ -197,7 +197,7 @@ impl RlvSharedFolder {
|
||||
}
|
||||
|
||||
/// `enum` shim for C# `LibreMetaverse.RLV.RlvWearableType`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RlvWearableType;
|
||||
impl RlvWearableType {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.RlvWearableType";
|
||||
@@ -205,7 +205,7 @@ impl RlvWearableType {
|
||||
}
|
||||
|
||||
/// `enum` shim for C# `LibreMetaverse.RLV.TouchLocation`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct TouchLocation;
|
||||
impl TouchLocation {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.RLV.TouchLocation";
|
||||
@@ -214,7 +214,7 @@ impl TouchLocation {
|
||||
|
||||
pub mod event_arguments {
|
||||
/// `class` shim for C# `LibreMetaverse.RLV.EventArguments.RestrictionUpdatedEventArgs`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct RestrictionUpdatedEventArgs;
|
||||
impl RestrictionUpdatedEventArgs {
|
||||
pub const CSHARP_NAME: &'static str =
|
||||
|
||||
@@ -3,3 +3,4 @@
|
||||
mod generated;
|
||||
|
||||
pub use generated::*;
|
||||
pub use libremetaverse_types::NotImplemented as Error;
|
||||
|
||||
Reference in New Issue
Block a user