pub struct SocketTarget {
pub path: PathBuf,
pub daemon_room: Option<String>,
}Expand description
Resolved connection target for a broker.
All connections go through the multi-room daemon (roomd). The client
prepends ROOM:<room_id>: before every handshake token so the daemon can
route the connection to the correct room.
daemon_room is always Some(room_id) in production. None is only used
by test fixtures that connect directly to a standalone Broker instance.
Fields§
§path: PathBufPath to the UDS socket.
daemon_room: Option<String>If Some(room_id), prepend ROOM:<room_id>: before each handshake token.
Trait Implementations§
Source§impl Clone for SocketTarget
impl Clone for SocketTarget
Source§fn clone(&self) -> SocketTarget
fn clone(&self) -> SocketTarget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SocketTarget
impl RefUnwindSafe for SocketTarget
impl Send for SocketTarget
impl Sync for SocketTarget
impl Unpin for SocketTarget
impl UnsafeUnpin for SocketTarget
impl UnwindSafe for SocketTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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