Sign in

    moonbit-community/rtc/turn does not have a README file

    TurnError

    pub(all) suberror TurnError {
    InvalidConfiguration(String)
    InvalidState(String)
    InvalidPacket(String)
    InvalidResponse(String)
    AuthenticationFailed
    AllocationExpired
    PermissionMissing
    ChannelBindingMissing
    Transaction(
    StunError
    )
    Time(
    TimeError
    )
    } derive(Eq,
    Debug
    )

    Allocation

    Allocation::bind_channel

    Allocation::close

    Allocation::handle_datagram

    Allocation::handle_stream_bytes

    fn Allocation::handle_stream_bytes(self : Allocation, now :
    Instant
    , bytes : Bytes) -> Unit raise TurnError

    Allocation::handle_stream_closed

    fn Allocation::handle_stream_closed(self : Allocation) -> Unit

    Allocation::handle_timeout

    fn Allocation::handle_timeout(self : Allocation, now :
    Instant
    ) -> Unit raise TurnError

    Allocation::handles_context

    Allocation::local_address

    Allocation::poll_event

    fn Allocation::poll_event(self : Allocation) -> AllocationEvent?

    Allocation::poll_stream_write

    fn Allocation::poll_stream_write(self : Allocation) -> Bytes?

    Allocation::poll_timeout

    Allocation::refresh

    Allocation::relayed_address

    fn Allocation::relayed_address(self : Allocation) -> RelayedAddress?

    Allocation::start

    Allocation::state

    Allocation::transport

    fn Allocation::transport(self : Allocation) -> TurnTransport

    AllocationEvent

    pub(all) enum AllocationEvent {
    AllocationStateChanged(AllocationState)
    AllocationCreated(RelayedAddress)
    PermissionCreated(
    SocketAddress
    )
    ChannelBound(peer~ :
    SocketAddress
    , channel~ : UInt16)
    PeerData(peer~ :
    SocketAddress
    , payload~ : Bytes)
    } derive(Eq,
    Debug
    )

    AllocationId

    pub(all) struct AllocationId(UInt64) derive(Eq, Hash,
    Debug
    )

    AllocationState

    pub(all) enum AllocationState {
    New
    Allocating
    Active
    Refreshing
    Closed
    Failed
    } derive(Eq,
    Debug
    )

    ChannelBinding

    type ChannelBinding

    PendingTurnTransaction

    type PendingTurnTransaction

    Permission

    type Permission

    TurnCredentials

    pub struct TurnCredentials {
    username : String
    password : String
    } derive(Eq,
    Debug
    )

    TurnCredentials::new

    fn TurnCredentials::new(username~ : String, password~ : String) -> TurnCredentials raise TurnError

    TurnCredentials::password

    fn TurnCredentials::password(self : TurnCredentials) -> String

    TurnCredentials::username

    fn TurnCredentials::username(self : TurnCredentials) -> String

    TurnTransport

    pub(all) enum TurnTransport {
    Udp
    Tcp
    Tls
    } derive(Eq,
    Debug
    )

    long_term_key

    fn long_term_key(username : String, realm : String, password : String) -> Bytes

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io