struct InboundPublish {
message: Publish,
state: Mutex<PublishStateMachine>,
}Expand description
A subscription the peer opened with PUBLISH.
Fields§
§message: PublishThe message as it arrived, which is what the application answers from.
state: Mutex<PublishStateMachine>How far the subscription it opened has got.
Behind a lock for the reason Endpoint::subscription gives: an
offer the peer made is one of the two ways this endpoint receives a
track, so a withdrawal from the data plane has to reach it.
Implementations§
Source§impl InboundPublish
impl InboundPublish
Sourcefn flow(&self) -> MutexGuard<'_, PublishStateMachine>
fn flow(&self) -> MutexGuard<'_, PublishStateMachine>
The flow this offer opened, locked for a read or a transition.
Sourcefn publish_state(&self) -> PublishState
fn publish_state(&self) -> PublishState
How far that flow has got.
Auto Trait Implementations§
impl !Freeze for InboundPublish
impl RefUnwindSafe for InboundPublish
impl Send for InboundPublish
impl Sync for InboundPublish
impl Unpin for InboundPublish
impl UnsafeUnpin for InboundPublish
impl UnwindSafe for InboundPublish
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