pub enum AeronStatus {
Disconnected,
Connected,
BackPressured,
Closed,
}Expand description
High-level connection state of a publication or subscription.
AeronPublication::status / AeronSubscription::status derive
Disconnected / Connected / Closed from the handle’s is_closed /
is_connected flags. BackPressured is only observable at offer /
try_claim time (via the returned error) and is surfaced by
AeronStatus::from_error.
Variants§
Disconnected
No publication/subscription image is currently connected.
Connected
At least one image/publication is connected and the channel is usable.
BackPressured
The publication is applying back-pressure; retry the offer shortly.
Closed
The publication/subscription has been closed and is unusable.
Implementations§
Source§impl AeronStatus
impl AeronStatus
Sourcepub fn from_error(error: &AeronOfferError) -> Option<Self>
pub fn from_error(error: &AeronOfferError) -> Option<Self>
Derive a status from an offer / try_claim error when it corresponds
to a known transition (BackPressured / Closed). Returns None for
errors that are not status-like (e.g. MaxPositionExceeded).
Trait Implementations§
Source§impl Clone for AeronStatus
impl Clone for AeronStatus
Source§fn clone(&self) -> AeronStatus
fn clone(&self) -> AeronStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more