pub(crate) struct ConnectionInner {Show 16 fields
server_guid: OwnedGuid,
cap_unix_fd: bool,
unique_name: OnceLock<OwnedUniqueName>,
registered_names: Mutex<HashMap<WellKnownName<'static>, NameStatus>>,
activity_event: Arc<Event>,
socket_write: Mutex<Box<dyn WriteHalf>>,
executor: Executor<'static>,
socket_reader_task: OnceLock<Task<()>>,
pub(crate) msg_receiver: InactiveReceiver<Result<Message>>,
pub(crate) method_return_receiver: InactiveReceiver<Result<Message>>,
msg_senders: Arc<Mutex<HashMap<Option<OwnedMatchRule>, Sender<Result<Message>>>>>,
subscriptions: Mutex<HashMap<OwnedMatchRule, (u64, InactiveReceiver<Result<Message>>)>>,
object_server: OnceLock<ObjectServer>,
object_server_dispatch_task: OnceLock<Task<()>>,
drop_event: Event,
method_timeout: Option<Duration>,
}Expand description
Inner state shared by Connection and WeakConnection
Fields§
§server_guid: OwnedGuid§cap_unix_fd: bool§unique_name: OnceLock<OwnedUniqueName>§registered_names: Mutex<HashMap<WellKnownName<'static>, NameStatus>>§activity_event: Arc<Event>§socket_write: Mutex<Box<dyn WriteHalf>>§executor: Executor<'static>§socket_reader_task: OnceLock<Task<()>>§msg_receiver: InactiveReceiver<Result<Message>>§method_return_receiver: InactiveReceiver<Result<Message>>§msg_senders: Arc<Mutex<HashMap<Option<OwnedMatchRule>, Sender<Result<Message>>>>>§subscriptions: Mutex<HashMap<OwnedMatchRule, (u64, InactiveReceiver<Result<Message>>)>>§object_server: OnceLock<ObjectServer>§object_server_dispatch_task: OnceLock<Task<()>>§drop_event: Event§method_timeout: Option<Duration>Trait Implementations§
Source§impl Debug for ConnectionInner
impl Debug for ConnectionInner
Auto Trait Implementations§
impl !Freeze for ConnectionInner
impl !RefUnwindSafe for ConnectionInner
impl Send for ConnectionInner
impl Sync for ConnectionInner
impl Unpin for ConnectionInner
impl !UnwindSafe for ConnectionInner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more