pub struct SocketFileInfo {
pub socket_id: usize,
}Expand description
Information about socket files in the filesystem
Scarlet uses socket IDs to uniquely identify socket objects in the NetworkManager. This allows socket files to be created in the filesystem and associated with actual socket objects for inter-process communication.
§Architecture
Similar to device files, socket files in Scarlet are identified by:
socket_id: A unique identifier within the NetworkManager’s socket registry
This enables Unix domain socket-like functionality where sockets can be bound to filesystem paths for inter-process communication.
§Examples
// Socket file for IPC
let socket_file = SocketFileInfo {
socket_id: 42,
};Fields§
§socket_id: usizeTrait Implementations§
Source§impl Clone for SocketFileInfo
impl Clone for SocketFileInfo
Source§fn clone(&self) -> SocketFileInfo
fn clone(&self) -> SocketFileInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SocketFileInfo
impl Debug for SocketFileInfo
Source§impl PartialEq for SocketFileInfo
impl PartialEq for SocketFileInfo
impl Copy for SocketFileInfo
impl StructuralPartialEq for SocketFileInfo
Auto Trait Implementations§
impl Freeze for SocketFileInfo
impl RefUnwindSafe for SocketFileInfo
impl Send for SocketFileInfo
impl Sync for SocketFileInfo
impl Unpin for SocketFileInfo
impl UnwindSafe for SocketFileInfo
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)