pub struct Downstream { /* private fields */ }Expand description
A settled downstream leg: what to answer, and what the bridge may forward.
Implementations§
Source§impl Downstream
impl Downstream
Sourcepub const fn leg(&self) -> &Leg
pub const fn leg(&self) -> &Leg
The client’s side of the bridge, on its own.
The Agreement is the useful form for forwarding; this is the one a
report wants, because it is the two numbers that went into the
reconciliation without everything downstream of them.
Sourcepub const fn agreement(&self) -> &Agreement
pub const fn agreement(&self) -> &Agreement
Both sides reconciled: what this bridge can serve, and what it cannot.
Sourcepub const fn body(&self) -> &JsonObject
pub const fn body(&self) -> &JsonObject
The InitializeResult to send back.
Its capabilities are Agreement::served rendered through the
writer, so the client is told exactly what the bridge will forward.
Sourcepub const fn served(&self) -> FeatureProfile
pub const fn served(&self) -> FeatureProfile
What this bridge will serve for this client.
Trait Implementations§
Source§impl Clone for Downstream
impl Clone for Downstream
Source§impl Debug for Downstream
impl Debug for Downstream
impl Eq for Downstream
Source§impl PartialEq for Downstream
impl PartialEq for Downstream
impl StructuralPartialEq for Downstream
Auto Trait Implementations§
impl Freeze for Downstream
impl RefUnwindSafe for Downstream
impl Send for Downstream
impl Sync for Downstream
impl Unpin for Downstream
impl UnsafeUnpin for Downstream
impl UnwindSafe for Downstream
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