Files
qitech-control/server/rustdoc.md
T
2025-09-03 17:25:18 +02:00

335 KiB
Raw Blame History

Crate Documentation

Version: 0.1.0

Format Version: 43

Module server

Modules

Module app_state

pub mod app_state { /* ... */ }

Types

Struct SocketioSetup

pub struct SocketioSetup {
    pub socketio: smol::lock::RwLock<Option<socketioxide::SocketIo>>,
    pub namespaces: smol::lock::RwLock<crate::socketio::namespaces::Namespaces>,
    pub socket_queue_tx: smol::channel::Sender<(socketioxide::extract::SocketRef, std::sync::Arc<control_core::socketio::event::GenericEvent>)>,
    pub socket_queue_rx: smol::channel::Receiver<(socketioxide::extract::SocketRef, std::sync::Arc<control_core::socketio::event::GenericEvent>)>,
}
Fields
Name Type Documentation
socketio smol::lock::RwLock<Option<socketioxide::SocketIo>>
namespaces smol::lock::RwLock<crate::socketio::namespaces::Namespaces>
socket_queue_tx smol::channel::Sender<(socketioxide::extract::SocketRef, std::sync::Arc<control_core::socketio::event::GenericEvent>)>
socket_queue_rx smol::channel::Receiver<(socketioxide::extract::SocketRef, std::sync::Atrong>

  • Tap

  • TryConv

  • TryFrom

    • fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> { /* ... */ }
      
  • TryInto

    • fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error> { /* ... */ }
      
  • Unpin

  • UnwindSafe

  • VZip

    • fn vzip(self: Self) -> V { /* ... */ }
      
  • WithSubscriber

  • Struct SerialSetup

    pub struct SerialSetup {
        pub serial_detection: control_core::serial::serial_detection::SerialDetection<''static>,
    }
    
    Fields
    Name Type Documentation
    serial_detection control_core::serial::serial_detection::SerialDetection<''static>
    Implementations
    Trait Implementations
    • Any

      • fn type_id(self: &Self) -> TypeId { /* ... */ }
        
    • Borrow

      • fn borrow(self: &Self) -> &T { /* ... */ }
        
    • BorrowMut

      • fn borrow_mut(self: &mut Self) -> &mut T { /* ... */ }
        
    • Conv

    • FmtForward

    • Freeze

    • From

      • fn from(t: T) -> T { /* ... */ }
        
        Returns the argument unchanged.
    • HttpServerConnExec

    • Instrument

    • Into

      • fn into(self: Self) -> U { /* ... */ }
        
        Calls U::from(self).
    • Pipe

    • RefUnwindSafe

    • Same

    • Send

    • Sync

    • Tap

    • TryConv

    • TryFrom

      • fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> { /* ... */ }
        
    • TryInto

      • fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error> { /* ... */ }
        
    • Unpin

    • UnwindSafe

    • VZip

      • fn vzip(self: Self) -> V { /* ... */ }
        
    • WithSubscriber

    Struct AppState

    pub struct AppState {
        pub socketio_setup: SocketioSetup,
        pub ethercat_setup: std::sync::Arc<smol::lock::RwLock<Option<EthercatSetup>>>,
        pub serial_setup: std::sync::Arc<