Expand description
FFI bindings to libstdio_bus C library
This crate provides raw FFI bindings to the stdio_bus embedding API
as defined in include/stdio_bus_embed.h.
For a safe Rust API, use stdiobus-client instead.
Structs§
- stdio_
bus_ listener_ config_ t - Listener configuration
- stdio_
bus_ options_ t - Options for creating a stdio_bus instance
- stdio_
bus_ stats_ t - Statistics
- stdio_
bus_ t - Opaque bus handle
Enums§
- stdio_
bus_ listen_ mode_ t - Listen mode
- stdio_
bus_ state_ t - Bus state
Constants§
- STDIO_
BUS_ EAGAIN - STDIO_
BUS_ EFULL - STDIO_
BUS_ EINVAL - STDIO_
BUS_ EMBED_ API_ VERSION - API version
- STDIO_
BUS_ ENOTFOUND - STDIO_
BUS_ EOF - STDIO_
BUS_ ERR - STDIO_
BUS_ ERR_ BUFFER - STDIO_
BUS_ ERR_ CONFIG - Error codes (from stdio_bus_embed.h)
- STDIO_
BUS_ ERR_ INVALID - STDIO_
BUS_ ERR_ ROUTING - STDIO_
BUS_ ERR_ STATE - STDIO_
BUS_ ERR_ WORKER - STDIO_
BUS_ OK - Return codes (from stdio_bus.h)
Functions§
- stdio_
bus_ ⚠client_ count - Get number of connected clients
- stdio_
bus_ ⚠create - Create a new stdio_bus instance
- stdio_
bus_ ⚠destroy - Destroy instance and free resources
- stdio_
bus_ ⚠get_ poll_ fd - Get the underlying event loop fd
- stdio_
bus_ ⚠get_ state - Get current bus state
- stdio_
bus_ ⚠get_ stats - Get statistics
- stdio_
bus_ ⚠ingest - Send a message into the bus
- stdio_
bus_ ⚠pending_ count - Get number of pending requests
- stdio_
bus_ ⚠session_ count - Get number of active sessions
- stdio_
bus_ ⚠start - Start the bus (spawn workers)
- stdio_
bus_ ⚠step - Process pending I/O (non-blocking)
- stdio_
bus_ ⚠stop - Initiate graceful shutdown
- stdio_
bus_ ⚠worker_ count - Get number of active workers
Type Aliases§
- stdio_
bus_ client_ connect_ cb - Client connect callback
- stdio_
bus_ client_ disconnect_ cb - Client disconnect callback
- stdio_
bus_ error_ cb - Error callback
- stdio_
bus_ log_ cb - Log callback
- stdio_
bus_ message_ cb - Message callback
- stdio_
bus_ worker_ cb - Worker event callback