pub struct ControlPush {
pub op: String,
pub body: Value,
}Expand description
A parsed daemon-originated channel-0 control push.
Fields§
§op: StringThe push discriminator, e.g. route.closing / route.closed.
body: ValueThe full parsed body, op included, for op-specific fields.
Implementations§
Source§impl ControlPush
impl ControlPush
Sourcepub fn route_close_reason(&self) -> Option<RouteCloseReason>
pub fn route_close_reason(&self) -> Option<RouteCloseReason>
Decode the close reason from a route lifecycle push, if this is one.
Trait Implementations§
Source§impl Clone for ControlPush
impl Clone for ControlPush
Auto Trait Implementations§
impl Forget for ControlPush
impl Freeze for ControlPush
impl Move for ControlPush
impl RefUnwindSafe for ControlPush
impl Send for ControlPush
impl Sync for ControlPush
impl Unpin for ControlPush
impl UnsafeUnpin for ControlPush
impl UnwindSafe for ControlPush
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