pub struct ChannelUri {}Expand description
Represents the Aeron URI parser and handler.
Implementations§
Source§impl ChannelUri
impl ChannelUri
pub const AERON_SCHEME: &'static str = "aeron"
pub const SPY_QUALIFIER: &'static str = "aeron-spy"
pub const MAX_URI_LENGTH: usize = 4095
Sourcepub fn add_session_id(channel: &str, session_id: i32) -> String
pub fn add_session_id(channel: &str, session_id: i32) -> String
Return channel with a session-id param added (replacing any existing one).
Mirrors Java’s ChannelUri.addSessionId — the standard way to build a channel
that joins a specific session, e.g. when subscribing to an archive replay:
assert_eq!(
ChannelUri::add_session_id("aeron:ipc", 42),
"aeron:ipc?session-id=42"
);
assert_eq!(
ChannelUri::add_session_id("aeron:udp?endpoint=localhost:20121", -123),
"aeron:udp?endpoint=localhost:20121|session-id=-123"
);Auto Trait Implementations§
impl Freeze for ChannelUri
impl RefUnwindSafe for ChannelUri
impl Send for ChannelUri
impl Sync for ChannelUri
impl Unpin for ChannelUri
impl UnsafeUnpin for ChannelUri
impl UnwindSafe for ChannelUri
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