Expand description
Convenience prelude module
Re-exports commonly used types and traits for quick imports:
use actr_runtime::prelude::*;Re-exports§
pub use crate::actr_ref::ActrRef;pub use crate::lifecycle::ActrNode;pub use crate::lifecycle::ActrSystem;pub use crate::lifecycle::CompatLockFile;pub use crate::lifecycle::CompatLockManager;pub use crate::lifecycle::CompatibilityCheck;pub use crate::lifecycle::DiscoveryResult;pub use crate::inbound::DataStreamCallback;pub use crate::inbound::DataStreamRegistry;pub use crate::inbound::MediaFrameRegistry;pub use crate::inbound::MediaTrackCallback;pub use crate::outbound::InprocOutGate;pub use crate::outbound::OutGate;pub use crate::outbound::OutprocOutGate;pub use crate::context_factory::ContextFactory;pub use crate::wire::webrtc::AuthConfig;pub use crate::wire::webrtc::AuthType;pub use crate::wire::webrtc::ReconnectConfig;pub use crate::wire::webrtc::SignalingClient;pub use crate::wire::webrtc::SignalingConfig;pub use crate::wire::webrtc::WebRtcCoordinator;pub use crate::wire::webrtc::WebRtcGate;pub use crate::wire::webrtc::WebRtcNegotiator;pub use crate::wire::webrtc::WebSocketSignalingClient;pub use crate::transport::DataLane;pub use crate::transport::DefaultWireBuilder;pub use crate::transport::DefaultWireBuilderConfig;pub use crate::transport::DestTransport;pub use crate::transport::InprocTransportManager;pub use crate::transport::NetworkError;pub use crate::transport::NetworkResult;pub use crate::transport::OutprocTransportManager;pub use crate::transport::WireBuilder;pub use crate::transport::WireHandle;pub use crate::transport::TransportManager;pub use crate::error::RuntimeError;pub use crate::error::RuntimeResult;pub use crate::monitoring::Alert;pub use crate::monitoring::AlertSeverity;pub use crate::monitoring::Monitor;pub use crate::resource::ResourceManager;pub use crate::resource::ResourceQuota;pub use crate::resource::ResourceUsage;
Modules§
- broadcast
- A multi-producer, multi-consumer broadcast queue. Each sent value is seen by all consumers.
- mpsc
- A multi-producer, single-consumer queue for sending values between asynchronous tasks.
- oneshot
- A one-shot channel is used for sending a single message between
asynchronous tasks. The
channelfunction is used to create aSenderandReceiverhandle pair that form the channel.
Macros§
- debug
- Constructs an event at the debug level.
- error
- Constructs an event at the error level.
- info
- Constructs an event at the info level.
- trace
- Constructs an event at the trace level.
- warn
- Constructs an event at the warn level.
Structs§
- ActrId
- Actr
Type - Date
Time - ISO 8601 combined date and time with time zone.
- Duration
- A
Durationtype to represent a span of time, typically used for system timeouts. - IceServer
- ICE 服务器配置
- Instant
- A measurement of a monotonically nondecreasing clock.
Opaque and useful only with
Duration. - Mailbox
Stats - 邮箱的统计信息
- Media
Sample - Media sample data from WebRTC native track
- Message
Record - 从队列中取出的消息记录
- Mutex
- An asynchronous
Mutex-like type. - RwLock
- An asynchronous reader-writer lock.
- Utc
- The UTC time zone. This is the most efficient time zone when you don’t need the local time. It is also used as an offset (which is also a dummy type).
- Uuid
- A Universally Unique Identifier (UUID).
- WebRtc
Config - WebRTC 配置
Enums§
- Dest
- Destination identifier
- Media
Type - Media type enum
- Message
Priority - 消息优先级
- Message
Status - 消息处理状态
- Protocol
Error - Protocol-level errors primarily related to data structure and format validity.
Traits§
- Anyhow
Context - Provides the
contextmethod forResult. - Context
- Context - Actor execution context interface
- Mailbox
- 邮箱接口 - 定义消息持久化的核心操作
- Workload
- Workload - Executable Actor workload
Functions§
- sleep
- Waits until
durationhas elapsed. - timeout
- Requires a
Futureto complete before the specified duration has elapsed.
Type Aliases§
- Actor
Result - Actor result type - commonly used in framework and runtime
- Anyhow
Result Result<T, Error>