Complete Rust API and migration documentation (#102)
Some checks failed
Native code generation / deterministic (push) Failing after 2m5s
Concurrency and resource soak audit / soak (push) Failing after 6m22s
Documentation / documentation (push) Failing after 1m25s
Imaging and meshing gate / native (push) Failing after 2m47s
JPEG 2000 feature / linux (push) Successful in 3m54s
Release platform and feature matrix / audit (push) Successful in 37s
Native Rust workspace compile / compile (push) Failing after 1m14s
Skia feature / linux (push) Successful in 30m46s
Dependency and supply-chain audit / audit (push) Failing after 8m56s
Release platform and feature matrix / matrix (false, linux-stable-minimal, x86_64-unknown-linux-gnu, stable) (push) Failing after 9m16s
Release platform and feature matrix / matrix (false, macos-stable-portable, x86_64-apple-darwin, stable) (push) Failing after 1m20s
Release platform and feature matrix / matrix (false, windows-stable-portable, x86_64-pc-windows-gnu, stable) (push) Failing after 1m18s
Release platform and feature matrix / matrix (true, linux-stable-default, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-stable-features, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-stable-release-surface, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-msrv-portable, x86_64-unknown-linux-gnu, 1.96.0) (push) Has been cancelled
Some checks failed
Native code generation / deterministic (push) Failing after 2m5s
Concurrency and resource soak audit / soak (push) Failing after 6m22s
Documentation / documentation (push) Failing after 1m25s
Imaging and meshing gate / native (push) Failing after 2m47s
JPEG 2000 feature / linux (push) Successful in 3m54s
Release platform and feature matrix / audit (push) Successful in 37s
Native Rust workspace compile / compile (push) Failing after 1m14s
Skia feature / linux (push) Successful in 30m46s
Dependency and supply-chain audit / audit (push) Failing after 8m56s
Release platform and feature matrix / matrix (false, linux-stable-minimal, x86_64-unknown-linux-gnu, stable) (push) Failing after 9m16s
Release platform and feature matrix / matrix (false, macos-stable-portable, x86_64-apple-darwin, stable) (push) Failing after 1m20s
Release platform and feature matrix / matrix (false, windows-stable-portable, x86_64-pc-windows-gnu, stable) (push) Failing after 1m18s
Release platform and feature matrix / matrix (true, linux-stable-default, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-stable-features, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-stable-release-surface, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-msrv-portable, x86_64-unknown-linux-gnu, 1.96.0) (push) Has been cancelled
This commit is contained in:
@@ -6,9 +6,16 @@
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
/// C# type: `T:LibreMetaverse.Utilities.ConnectionManager`.
|
||||
///
|
||||
/// Native Rust mapping of C# `LibreMetaverse.Utilities.ConnectionManager` using decision
|
||||
/// `native_metacrate_type`. See the [pinned C# source](https://github.com/cinderblocks/libremetaverse/tree/2aa70bb68513b39795da5d13c88f31b86e85a3ba).
|
||||
pub struct ConnectionManager;
|
||||
impl ConnectionManager {
|
||||
/// C# member: `M:LibreMetaverse.Utilities.ConnectionManager.#ctor(LibreMetaverse.GridClient,System.Int32)`.
|
||||
///
|
||||
/// C# signature: `LibreMetaverse.Utilities.ConnectionManager(LibreMetaverse.GridClient client, System.Int32 timerFrequency)`.
|
||||
/// Mapping contract: ownership `owned,owned`; async `sync`;
|
||||
/// errors `Result<_, crate::Error>`; overload `direct_snake_case`; kind `method`.
|
||||
pub fn new(
|
||||
client: libremetaverse::GridClient,
|
||||
timer_frequency: i32,
|
||||
@@ -18,6 +25,10 @@ impl ConnectionManager {
|
||||
)
|
||||
}
|
||||
/// C# member: `M:LibreMetaverse.Utilities.ConnectionManager.PersistentLogin(LibreMetaverse.GridClient,System.String,System.String,System.String,System.String,System.String,System.String)`.
|
||||
///
|
||||
/// C# signature: `System.Threading.Tasks.Task<System.Boolean> LibreMetaverse.Utilities.ConnectionManager.PersistentLogin(LibreMetaverse.GridClient client, System.String firstName, System.String lastName, System.String password, System.String userAgent, System.String start, System.String author)`.
|
||||
/// Mapping contract: ownership `owned,owned,owned,owned,owned,owned,owned`; async `async`;
|
||||
/// errors `Result<_, crate::Error>`; overload `direct_snake_case`; kind `method`.
|
||||
pub async fn persistent_login(
|
||||
client: libremetaverse::GridClient,
|
||||
first_name: String,
|
||||
@@ -32,6 +43,10 @@ impl ConnectionManager {
|
||||
)
|
||||
}
|
||||
/// C# member: `M:LibreMetaverse.Utilities.ConnectionManager.StayInSim(System.UInt64,LibreMetaverse.Vector3)`.
|
||||
///
|
||||
/// C# signature: `System.Void LibreMetaverse.Utilities.ConnectionManager.StayInSim(System.UInt64 handle, LibreMetaverse.Vector3 desiredPosition)`.
|
||||
/// Mapping contract: ownership `shared_self,owned,owned`; async `sync`;
|
||||
/// errors `Result<_, crate::Error>`; overload `direct_snake_case`; kind `method`.
|
||||
pub fn stay_in_sim(
|
||||
&self,
|
||||
handle: u64,
|
||||
@@ -42,15 +57,26 @@ impl ConnectionManager {
|
||||
)
|
||||
}
|
||||
/// C# member: `M:LibreMetaverse.Utilities.ConnectionManager.Stop`.
|
||||
///
|
||||
/// C# signature: `System.Void LibreMetaverse.Utilities.ConnectionManager.Stop()`.
|
||||
/// Mapping contract: ownership `shared_self`; async `sync`;
|
||||
/// errors `Result<_, crate::Error>`; overload `direct_snake_case`; kind `method`.
|
||||
pub fn stop(&self) -> Result<(), crate::Error> {
|
||||
libremetaverse_types::not_implemented("M:LibreMetaverse.Utilities.ConnectionManager.Stop")
|
||||
}
|
||||
}
|
||||
|
||||
/// C# type: `T:LibreMetaverse.Utilities.Realism`.
|
||||
///
|
||||
/// Native Rust mapping of C# `LibreMetaverse.Utilities.Realism` using decision
|
||||
/// `native_metacrate_type`. See the [pinned C# source](https://github.com/cinderblocks/libremetaverse/tree/2aa70bb68513b39795da5d13c88f31b86e85a3ba).
|
||||
pub struct Realism;
|
||||
impl Realism {
|
||||
/// C# member: `M:LibreMetaverse.Utilities.Realism.Chat(LibreMetaverse.GridClient,System.String)`.
|
||||
///
|
||||
/// C# signature: `System.Void LibreMetaverse.Utilities.Realism.Chat(LibreMetaverse.GridClient client, System.String message)`.
|
||||
/// Mapping contract: ownership `owned,owned`; async `sync`;
|
||||
/// errors `Result<_, crate::Error>`; overload `descriptive_overload_name`; kind `method`.
|
||||
pub fn chat_with_grid_client_string(
|
||||
client: libremetaverse::GridClient,
|
||||
message: String,
|
||||
@@ -60,6 +86,10 @@ impl Realism {
|
||||
)
|
||||
}
|
||||
/// C# member: `M:LibreMetaverse.Utilities.Realism.Chat(LibreMetaverse.GridClient,System.String,LibreMetaverse.ChatType,System.Int32)`.
|
||||
///
|
||||
/// C# signature: `System.Void LibreMetaverse.Utilities.Realism.Chat(LibreMetaverse.GridClient client, System.String message, LibreMetaverse.ChatType type, System.Int32 cps)`.
|
||||
/// Mapping contract: ownership `owned,owned,owned,owned`; async `sync`;
|
||||
/// errors `Result<_, crate::Error>`; overload `descriptive_overload_name`; kind `method`.
|
||||
pub fn chat_with_grid_client_string_chat_type_int32(
|
||||
client: libremetaverse::GridClient,
|
||||
message: String,
|
||||
@@ -71,6 +101,10 @@ impl Realism {
|
||||
)
|
||||
}
|
||||
/// C# member: `M:LibreMetaverse.Utilities.Realism.ChatAsync(LibreMetaverse.GridClient,System.String,LibreMetaverse.ChatType,System.Int32,System.Threading.CancellationToken)`.
|
||||
///
|
||||
/// C# signature: `System.Threading.Tasks.Task LibreMetaverse.Utilities.Realism.ChatAsync(LibreMetaverse.GridClient client, System.String message, LibreMetaverse.ChatType type, System.Int32 cps, System.Threading.CancellationToken cancellationToken = default)`.
|
||||
/// Mapping contract: ownership `owned,owned,owned,owned,optional_owned`; async `async`;
|
||||
/// errors `Result<_, crate::Error>`; overload `descriptive_overload_name`; kind `method`.
|
||||
pub async fn chat_with_grid_client_string_chat_type_int32_cancellation_token(
|
||||
client: libremetaverse::GridClient,
|
||||
message: String,
|
||||
@@ -83,6 +117,10 @@ impl Realism {
|
||||
)
|
||||
}
|
||||
/// C# member: `M:LibreMetaverse.Utilities.Realism.Shoot(LibreMetaverse.GridClient)`.
|
||||
///
|
||||
/// C# signature: `System.Boolean LibreMetaverse.Utilities.Realism.Shoot(LibreMetaverse.GridClient client)`.
|
||||
/// Mapping contract: ownership `owned`; async `sync`;
|
||||
/// errors `Result<_, crate::Error>`; overload `descriptive_overload_name`; kind `method`.
|
||||
pub fn shoot_with_grid_client(
|
||||
client: libremetaverse::GridClient,
|
||||
) -> Result<bool, crate::Error> {
|
||||
@@ -91,6 +129,10 @@ impl Realism {
|
||||
)
|
||||
}
|
||||
/// C# member: `M:LibreMetaverse.Utilities.Realism.Shoot(LibreMetaverse.GridClient,LibreMetaverse.Vector3)`.
|
||||
///
|
||||
/// C# signature: `System.Boolean LibreMetaverse.Utilities.Realism.Shoot(LibreMetaverse.GridClient client, LibreMetaverse.Vector3 target)`.
|
||||
/// Mapping contract: ownership `owned,owned`; async `sync`;
|
||||
/// errors `Result<_, crate::Error>`; overload `descriptive_overload_name`; kind `method`.
|
||||
pub fn shoot_with_grid_client_vector3(
|
||||
client: libremetaverse::GridClient,
|
||||
target: libremetaverse_types::Vector3,
|
||||
@@ -102,15 +144,34 @@ impl Realism {
|
||||
}
|
||||
|
||||
/// C# type: `T:LibreMetaverse.Utilities.WaterType`.
|
||||
///
|
||||
/// Native Rust mapping of C# `LibreMetaverse.Utilities.WaterType` using decision
|
||||
/// `native_metacrate_type`. See the [pinned C# source](https://github.com/cinderblocks/libremetaverse/tree/2aa70bb68513b39795da5d13c88f31b86e85a3ba).
|
||||
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
|
||||
#[repr(i32)]
|
||||
pub enum WaterType {
|
||||
/// C# member: `F:LibreMetaverse.Utilities.WaterType.Dry`.
|
||||
///
|
||||
/// C# signature: `LibreMetaverse.Utilities.WaterType LibreMetaverse.Utilities.WaterType.Dry`.
|
||||
/// Mapping contract: ownership `owned_value`; async `sync`;
|
||||
/// errors `none`; overload `direct_snake_case`; kind `direct`.
|
||||
Dry = 1,
|
||||
/// C# member: `F:LibreMetaverse.Utilities.WaterType.Underwater`.
|
||||
///
|
||||
/// C# signature: `LibreMetaverse.Utilities.WaterType LibreMetaverse.Utilities.WaterType.Underwater`.
|
||||
/// Mapping contract: ownership `owned_value`; async `sync`;
|
||||
/// errors `none`; overload `direct_snake_case`; kind `direct`.
|
||||
Underwater = 3,
|
||||
/// C# member: `F:LibreMetaverse.Utilities.WaterType.Unknown`.
|
||||
///
|
||||
/// C# signature: `LibreMetaverse.Utilities.WaterType LibreMetaverse.Utilities.WaterType.Unknown`.
|
||||
/// Mapping contract: ownership `owned_value`; async `sync`;
|
||||
/// errors `none`; overload `direct_snake_case`; kind `direct`.
|
||||
Unknown = 0,
|
||||
/// C# member: `F:LibreMetaverse.Utilities.WaterType.Waterfront`.
|
||||
///
|
||||
/// C# signature: `LibreMetaverse.Utilities.WaterType LibreMetaverse.Utilities.WaterType.Waterfront`.
|
||||
/// Mapping contract: ownership `owned_value`; async `sync`;
|
||||
/// errors `none`; overload `direct_snake_case`; kind `direct`.
|
||||
Waterfront = 2,
|
||||
}
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
//! Utilities corresponding to `LibreMetaverse.Utilities`.
|
||||
//! Native utility APIs corresponding to `LibreMetaverse.Utilities`.
|
||||
//!
|
||||
//! Use this compatibility crate when ported code depends on the upstream helper
|
||||
//! assembly. Public signatures use project-owned Rust boundary types and never
|
||||
//! load the `CLR` or an upstream binary.
|
||||
|
||||
extern crate self as libremetaverse_utilities;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user