pub struct RemoteObserverSubscription {
pub subscriber_id: String,
pub subscriber: ObserverSubscriber,
/* private fields */
}Expand description
Outcome of DaemonClient::register_session_observer.
Holds the server-assigned subscriber_id plus a
local ObserverSubscriber handle. The local subscriber is wired to a
connection-local mpsc channel: future work will pump
crate::observer::ObserverEvent frames into that channel from a
streaming IPC attach. In this PR no streaming attach exists yet, so the
channel stays empty — clients can still observe activity by polling
DaemonClient::get_session_observer_status.
Fields§
§subscriber_id: StringServer-assigned UUID identifying this subscription. Pass back to
DaemonClient::unregister_session_observer /
DaemonClient::get_session_observer_status.
subscriber: ObserverSubscriberLocal subscriber whose channel is currently inert.
Held here so the surface matches the Phase 1 in-process API and so
callers can pass it to existing code that expects an
ObserverSubscriber. Once a streaming-attach frame is added the
sender half (held internally) will start feeding this receiver.
Auto Trait Implementations§
impl !Sync for RemoteObserverSubscription
impl Freeze for RemoteObserverSubscription
impl RefUnwindSafe for RemoteObserverSubscription
impl Send for RemoteObserverSubscription
impl Unpin for RemoteObserverSubscription
impl UnsafeUnpin for RemoteObserverSubscription
impl UnwindSafe for RemoteObserverSubscription
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more